File encoding detection issue
-
Notepad++ has problems with detection of correct encoding of files. Usually I store text files using Windows-1251 (cyrillic) encoding. But often for files that contain not only latin charaters the application select Macintosh encoding. It is annoying to select the correct one.
Can you fix it or do you like apples so much? :)
-
@Артём ,
Unfortunately, there is no algorithm in the universe that will always correctly guess the encoding for all those ancient Windows-125x encodings. That’s the whole reason that Unicode, and the Unicode encodings like UTF-8 and UTF-16, exist: to get us beyond the 1980s technology of having dozens or hundreds of encodings with no way to externally tell without interpreting the bytes as each individual encoding and see if the bytes “make sense” when doing that coding. But if you’re stuck dealing with the ancient technology of old-fashioned encodings, then you’re stuck, and the superiority of UTF-* encodings is irrelevant.
If your files are almost always in the same encoding. you probably can turn off the MISC > Autodetect Character Encoding, which some people have found works better when their files are usually the same encoding.
If you need a way to quickly change the encoding to Windows-1251, you can use Shortcut Mapper on the main tab, filter for 1251, then MODIFY the shortcut for Windows-1251 to something you can remember. Then you can just hit that keystroke to change the encoding if it loads a file using the wrong encoding.
-