When I open a command line in Windows and type
chcp I 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" 4You also can run command in command line:
chcp 1251 After 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" /f Next time you run cmd, type chcp to confirm new charset.
Tested in Win 10 cmd