Forum Discussion
Windows 10 1903) How to change Default Encoding UTF-8 to ANSI In Notepad?
- Apr 24, 2023It's suspected to be a bug in Windows and hasn't been fixed in four years, and the only alternative is to change the default editor to Notpad++ or change the encoding settings on save. Thanks, Microsoft.
- In Regedit go to Computer\HKEY_CURRENT_USER\Software\Microsoft\Notepad
- in the menu select edit/new/DWORD
- in the DWORD name enter iDefaultEncoding and enter value 1 as hexadecimal (it will automatically display as 0x0000001 (1) once you press OK)
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"iDefaultEncoding"=dword:00000001
1 = ANSI ; 2 = UTF-16 LE ; 3 = UTF-16 BE ; 4 = UTF-8 BOM ; 5 = UTF-8
- Larry6631Nov 26, 2020Copper Contributor
cam_amoi I followed the procedure and entered 1 for ANSI. I then saved the file as an
ANSI file but it is still saving the files in UTF-8.- bom99Sep 02, 2021Copper Contributor
Go to regional options (From run window, run intl.cpl),
click on Administrative tab,
click "Change System Locale"
and make sure checkbox is off for "Beta: Use Unicode UTF-8 for worldwide language support" (requires reboot when changed)
- odairnettoSep 15, 2022Copper Contributor
bom99 Doesnt work.
- frode66Aug 07, 2020Copper Contributor
Very helpfull.
You should not by any chance have the value corresponding to "1252 Western Europe (Windows)" as well ?
- jflarvoireAug 07, 2020Copper Contributor
1 = ANSI is "1252 Western Europe (Windows)" on all Western Europe, USA, and Canada versions of Windows