Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to set default charset in Windows cmd?

Writer Mia Lopez

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"
4

You also can run command in command line:

chcp 1251

After that, you can check the change from the screenshot below:enter image description here

3

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy