save file as UTF-8 Topic is solved

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
saiberpink
Posts: 13
Joined: Mon 13 Aug, 2018 10:17
Has thanked: 4 times

save file as UTF-8

Post by saiberpink »

hello,

I have some difficulties with saving files with UTF-8 encoding. When I save (even with shift-F2) file as UTF-8 and open it in notepad++, it tells me that the file is in ANSI. I may switch to UTF-8 encoding in editor, I have UTF-8 selected as default encoding, still the same. Everytime I re-save the file (which may originally be UTF-8), notepad++ finds it to be ANSI.

what am I doing wrong?

far 3.0.5252 x64
User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

save file as UTF-8

Post by DrKnS »

saiberpink wrote: Mon 13 Aug, 2018 12:46notepad++ finds it to be ANSI.
UTF-8 is a superset of ANSI.
Your UTF-8 file is indistinguishable from ANSI if it contains only English text.
Add some Chinese, Cyrillic, emoji, funny punctuation or just save it with BOM to see the difference.
saiberpink
Posts: 13
Joined: Mon 13 Aug, 2018 10:17
Has thanked: 4 times

save file as UTF-8

Post by saiberpink »

ok,

it works as you say. thanks for explanation.
Post Reply

Return to “Support and Troubleshooting”