Sublime Forum

Add built-in support for encodings other than Unicode

#1

I’m using ST3 build 3083 in win10x64
and while I’m very excited with it,
I’ve noticed that it doesn’t display display greek text.
Here is a screenshot while opening this test file (which I wrote using Notepad, and saving it with default format - ANSI)
which contains a few words in greek:

while it should be displayed as https://i.imgur.com/dv8SJd4.jpg

Opening that file in Notepad++ showed that it’s encoding is ISO-8859-7 (Latin/Greek).

On the other hand, if I open that file with e.g. notepad, and save it as Unicode (instead of ANSI) then it’s opened ok in ST3.

To solve this I have installed this package ConvertToUTF.

So, my feature request is to add built-in support encodings other than Unicode (i.e. greek) to ST3.
Thank you

PS. Yes, I’ve set in Language|Change date, time or number format|Administrative|Region|Language for non-unicode programs: ‘Greek(Greece)’.

0 Likes

#2

Sublime Text does support other encodings, just use File > Reopen with Encoding and File > Save with Encoding. In particular, I see that it does support Greek (ISO 8859-7).

0 Likes

#3

Thanks for the tip. But, shouldn’t the proper encoding be selected automatically based on the opened file, as it does in e.g. gVim or Notepad++?
i.e. to properly display such files by default - without having to manually select encoding?

0 Likes

#4

Sublime Text tries to discourage the use of obsolete ANSI encodings in favor of utf-8, through it still supports them.

Text files do not contain encoding information, so editors have to guess it based on common words and known byte patterns. Not nice at all.
Use utf-8 everywhere.

0 Likes

#5

[quote=“lashtal”]Sublime Text tries to discourage the use of obsolete ANSI encodings in favor of utf-8, through it still supports them.

Text files do not contain encoding information, so editors have to guess it based on common words and known byte patterns. Not nice at all.
Use utf-8 everywhere.[/quote]

Thanks for the info.

0 Likes