Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 3 down vote accepted
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"AutoRun"="chcp 1251"
share|improve this answer
    
Isn't that more ideal to set that value to a batch file? –  Adam L. S. Feb 2 at 18:50
    
Not. You need to modify ALL batch files you may run. And they can be third-party and "read-only". –  Maximus Feb 2 at 22:32

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

share|improve this answer
    
Marslo, thanks for your answer, but my question was how to set charset to 1251 once, and use it by default –  Ishikawa Yoshi May 28 '13 at 7:21
    
Well, does it works if you modified the value in Regedit? –  Marslo May 28 '13 at 7:49
    
And, you can check the changed effect from the screenshot. And, of cause you should run this command as Administrator if the os is win7. –  Marslo May 28 '13 at 7:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.