Forum Discussion
1234598765
Aug 21, 2019Copper Contributor
Notepad Default encoding UTF8 Windows 10 Version 1903
Hello, does anyone know if you can re-enable ANSI encoding by registry in the notepad, instead of the default UTF8 encoding, which is given since Windows 10 version 1903.
MalTorte
Dec 03, 2019Copper Contributor
It's not quite so easy!
Many people use Notepad for a quick .cmd/.bat file. These will not run under the command interpreter if encoded as UTF-8. The command interpreter simply gives a non-printable character plus the first character of the .cmd/.bat file and "is not recognized as a command" error if run from command prompt. If run as standalone, the window simply blinks open and closes immediately and does not execute the desired commands.
Anyone wanting to write a .cmd or .bat now needs to remember to save as ANSI - very inconvenient!
It would be very nice to have access to a key (maybe under HKCU\Software\Microsoft\Notepad) that respected the user's wishes for default coding. Or maybe Notepad could offer to set the coding as default?
Dave29
Aug 09, 2023Copper Contributor
On Windows 11 a .BAT file saved as UTF-8, the default, worked fine for me.