Forum Discussion
Notepad Default encoding UTF8 Windows 10 Version 1903
"Of course, there's no need to worry about UTF-8 vs. ANSI in the first place if every file contains only ASCII text."
Wrong. If you write for example "è" in notepad, when you open the file with another text editor, you will see "è" and not "è". Then, there's need to worry about UTF-8 vs ANSI, because "è" has his ASCII code, i.e. 232
"è" 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).
- salclem2Jan 12, 2020Copper Contributor
Not true. ASCII table code has 256 codes, from 0 to 255.
- dretzerJan 13, 2020Iron Contributor
Sorry, but lexikos is actually right. ASCII is a 7-bit character encoding, which means it has 2^7=128 possible values. What you mean is extended ASCII which is actually a 8-bit extension to original ASCII. This keeps the original 128 ASCII encoding and adds another 128 on top of it.
So in decimal characters 0 - 127 are original ASCII and characters 128 - 255 are extended ASCII characters.