Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 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 '14 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 '14 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .