Remember that the contents of Test.txt file, the string ABNUL CDé, after saving, are 4142004344C3A9 with the UTF-8 encoding ( This same string, would be coded 4142004344E9 in an ANSI file ) So, the wrong string ABNUL CDé is displayed ! Indeed, with the UTF-8 encoding, any character with code-point under \x, is added to the file :-(( For instance, if you add the very common French char é, to get the string ABNUL CDé and save this file with an UTF-8 encoding, when you re-open this file, the encoding is wrongly changed to ANSI. WHAT IS NOTEPAD DEFAULT ENCODING SETTING INSTALLIt could be encoded, also, with four bytes 41424344 in a N UTF-8 file ( so without a BOM ). Download and install this powerful free text editor: Notepad Open the file you want to verify/fix in Notepad In the top menu select Encoding > Convert to. It could be encoded with four bytes 41424344 in an ANSI file ( so any Windows encoding as Win-1252, Win-1251, … because the ASCII part, from 00 to 7F is identical While opening this file, any editor, without any other indication, cannot tell which is its right encoding : Now just write the string ABCD, save this new file as Test.txt and close Notepad Now, let’s suppose that you open an N new file => So, in the status bar, the UTF-8 encoding is displayed : logical ! Note Alan, that is also my own configuration, too ! The Autodetect character encoding option is UNCHECKED.The Apply to opened ANSI files option is selectedĪnd in Settings > Preferences. The UTF-8 encoding ( Not the UTF-8 with BOM one ) is selected Well, Alan, I guess the problem and there is a real bug !įirst, I suppose that, in your Settings > Preferences.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |