Currently I'm running Windows 7 x64 and usually I want all console tools to work with UTF-8 rather than with default code page 850.
Running chcp 65001 in the command prompt prior to use of any tools helps but is there any way to set is as default code page?
Update:
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)



morecommand (it gives the misleading error messageNot enough memory.) Opening the command-prompt with the/Uswitch does not help. – Synetech Mar 07 '16 at 22:00Aversions of Windows functions is broken. All code needs to be ported to use theWversions. – Demi Apr 07 '17 at 14:42HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\OEMCPis used as fallback for non-unicode (non-utf) environments, obviously you try to force it to a 'unicode', as you see it is controversal by definition. Windows hangs probably because some system stuff on boot depends on non-unicode charset to work. – venimus Aug 23 '17 at 15:00Aversion of Win32 APIs instead of theWversion for portability – phuclv Jun 07 '21 at 13:52