Sublime Forum

ST 2 strange encoding with html

#1


Hi,
I did a viewsource on a webpage and copied it into ST2 and then saved it out and viewed it. It’s doing something wrong with the encoding on certain characters. I do the same thing with Notepad++ and it handles it perfectly. Here’s a couple of screen shots showing the weird way it renders some smart quotes. What is the solution?

0 Likes

#2


Here’s the same text after it is copied into Notepad++. Something weird is happening with the encoding. Anyone know what the issue is?

0 Likes

#3

Sublime Text will save it as UTF-8 by default. You’ll need to add a meta tag indicating that the encoding of the file is UTF-8.

0 Likes

#4

Hi,
Thanx. So I need to explicitly give this tag. Will do.

0 Likes