Monday, 26 May 2025

Command Prompt Got ¥ Command chcp 65001 or 1252

 Region Setting from HK to US

 

 

 

Command Prompt Got ¥ Command chcp 65001 or 1252

 https://superuser.com/questions/269818/change-default-code-page-of-windows-console-to-utf-8

Changing HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\OEMCP value to 65001 appear to make the system unable to boot in my case.

Proposed change of HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun to @chcp 65001>nul served just well for my purpose. (thanks to Ole_Brun)

To change the default code page for future sessions:
  1. 1. Using Registry:
    • Open Registry Editor (type regedit in the Start menu).
    • Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun.
    • Change the value of the Autorun key to @chcp 65001 >nul (for UTF-8) or @chcp 1252 >nul (for code page 1252). 


      https://superuser.com/questions/269818/change-default-code-page-of-windows-console-to-utf-8

      Changing HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\OEMCP value to 65001 appear to make the system unable to boot in my case.

      Proposed change of HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun to @chcp 65001>nul served just well for my purpose. (thanks to Ole_Brun)