Notepad3 (64-bit) v5.20.218.2 RC1
When I open ANSI text file, Unicode (UTF-8) shows in status bar.
When I force change to ANSI and save the file, it still opens as Unicode (UTF-8) - in status bar.
When I open that file in Notepad2-mod, it shows ANSI - that is correct.
All ANSI encoding share the same ASCII character set (lower 7-bit = 0 - 127) with UTF-8.
So if a file (stream of bytes) contains only ASCII characters it can be interpreted as ANSI (even Cyrillic-ANSI) or UTF-8, it will not change the ASCII bytes on save as.
We decided for Notepad3 to choose UTF-8 by enabling the 'Open 7-bit ASCII files in UTF-8 mode.' by default (clear this option, to get back Notepad2-mod behavior, using local system's ANSI codepage).
For arguments to go towards UTF-8, read the UTF-8 manifesto.
Hello @RomanLT ,
As far as I'm concerned, I think you (requester) can close this issue...
Of course, sorry :)
Most helpful comment
All ANSI encoding share the same ASCII character set (lower 7-bit = 0 - 127) with UTF-8.
So if a file (stream of bytes) contains only ASCII characters it can be interpreted as ANSI (even Cyrillic-ANSI) or UTF-8, it will not change the ASCII bytes on save as.
We decided for Notepad3 to choose UTF-8 by enabling the '
Open 7-bit ASCII files in UTF-8 mode.' by default (clear this option, to get back Notepad2-mod behavior, using local system's ANSI codepage).For arguments to go towards UTF-8, read the UTF-8 manifesto.