Sublime Forum

Wrong encoding appear

#1

I have text files with encoding ISO 8859-7 and they appear with wrong characters. What can i do? Thank you!image

0 Likes

#2

Sublime Merge supports the “encoding” git attribute. For instance adding *.txt encoding=ISO8859-7 to your .gitattributes file will make Sublime Merge open all files with a .txt extension using the ISO8859-7 encoding.

1 Like

#3

Fantastic! Thank you!!

0 Likes

#4

In case we have different encodings for the same extensions, how can I resolve it?
For example *.txt with ISO8859-7 and UTF-8-BOM. Is there a way for auto-detection?
Thank you.

0 Likes

#5

You can specify files explicitly by using the file name instead of an extension glob, ie. directory/file.txt. Encodings like ISO8859-7 generally cannot be auto-detected.

0 Likes