How to set default charset in Windows cmd?
Mia Lopez
When I open a command line in Windows and type
chcpI get result Текущая кодовая страница: 866
How do I set the charset to chcp 1251 by default?
3 Answers
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"AutoRun"="chcp 1251" 4 You also can run command in command line:
chcp 1251After that, you can check the change from the screenshot below:
From CMD:
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v "AutoRun" /d "chcp 1251" /fNext time you run cmd, type chcp to confirm new charset.
Tested in Win 10 cmd