Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change CodePage in CMD permanently?

Tags:

cmd

codepages

My Windows cmd CodePage is now under 65001. Since I was doing some Android stuff and need to use console log, but forget how changing it now.

When using chcp 437 to change the CodePage back, it works. But if I start a new cmd window, it goes back.

How to do the chcp thing to make it pernament?

like image 387
Lyn Avatar asked Sep 15 '11 14:09

Lyn


People also ask

How do I change Unicode in CMD?

To start it from the taskbar or anywhere else, make a shortcut (you can name it cmd. unicode.exe or whatever you like) and change its Target to C:\Windows\System32\cmd.exe /K chcp 65001 .

What is CHCP command?

The chcp command is used to supplement the international keyboard and character set information, allowing MS-DOS to be used in other countries and with different languages. Before the chcp command can be used, the nlsfunc must be loaded, and the country. sys must be loaded into the config. sys.


1 Answers

Here I found a better solution:

  1. Start -> Run -> regedit
  2. Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
  3. Add new String Value named: Autorun
  4. Change the value to 'chcp 437'
like image 187
Mojtaba Rezaeian Avatar answered Sep 25 '22 01:09

Mojtaba Rezaeian