User Profile
lexikos
Copper Contributor
Joined 6 years ago
User Widgets
Recent Discussions
Re: Notepad Default encoding UTF8 Windows 10 Version 1903
salclem2 "è" is not an ASCII character. ASCII only covers codes 0 to 127. Under all ANSI code pages and UTF-8, these values have the same meaning. A file containing only these values will be interpreted the same regardless of which code page is selected (excluding UTF-16).88KViews0likes2CommentsRe: Notepad Default encoding UTF8 Windows 10 Version 1903
HotCakeXYour instructions are for creating a UTF-8 template document to make UTF-8 a sort of default, which is the opposite of what the OP asked for. UTF-8 is already the default. This technique will not work if the template file is empty or contains only ASCII text, as it would be byte-for-byte identical in ANSI and UTF-8. Notepad will just use its default encoding, either ANSI or UTF-8 depending on the version The template file will only be identified with the original encoding if it contains something that causes Notepad to recognize the encoding, such as a UTF-8 BOM (but the OP wants ANSI, not UTF-8), or an ANSI multi-byte sequence that cannot be reinterpreted as valid UTF-8. For example, a text file containing only "µ" encoded as ANSI (for code page 1252, anyway) will correctly be identified as ANSI. Of course, there's no need to worry about UTF-8 vs. ANSI in the first place if every file contains only ASCII text.93KViews1like10Comments
Recent Blog Articles
No content to show