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: 9
Joined: Mon 13 Aug, 2018 10:17
Has thanked: 3 times

save file as UTF-8

Post by saiberpink » Mon 13 Aug, 2018 12:46

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: 5040
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 5 times
Been thanked: 176 times

save file as UTF-8

Post by DrKnS » Mon 13 Aug, 2018 13:15

saiberpink wrote:
Mon 13 Aug, 2018 12:46
notepad++ 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: 9
Joined: Mon 13 Aug, 2018 10:17
Has thanked: 3 times

save file as UTF-8

Post by saiberpink » Mon 13 Aug, 2018 13:36

ok,

it works as you say. thanks for explanation.

Post Reply

Return to “Support and Troubleshooting”