Page 1 of 1

save file as UTF-8

Posted: Mon 13 Aug, 2018 12:46
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

save file as UTF-8

Posted: Mon 13 Aug, 2018 13:15
by DrKnS
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.

save file as UTF-8

Posted: Mon 13 Aug, 2018 13:36
by saiberpink
ok,

it works as you say. thanks for explanation.