CHCP displays the number of active console code pages, or changes the active console code pages for that console

Time:2021-7-30

Chcp
Displays the number of active console code pages, or changes the active console code pages for that console. If used without parameters, then   chcp   Displays the number of active console code pages.

grammar
chcp [nnn]

parameter

Specify the code page. The following table lists all supported code pages and their countries (regions) or languages:   code page   Country (region) or language  
four hundred and thirty-seven   U.S.A  
eight hundred and fifty   Multilingual (Latin)   I)  
eight hundred and fifty-two   Slavic (Latin)   II)  
eight hundred and fifty-five   Cyrillic (Russian)  
eight hundred and fifty-seven   Turkish  
eight hundred and sixty   Portuguese  
eight hundred and sixty-one   Icelandic  
eight hundred and sixty-three   Canada  –  French  
eight hundred and sixty-five   Germanic languages  
eight hundred and sixty-six   Russian  
eight hundred and sixty-nine   Modern Greek  

/? 
Displays help at the command prompt.  
notes
Only with   Windows   XP   Install with OEM  ( OEM)   The code page can be displayed correctly in the command prompt window using raster font. Other code pages can be used in full screen mode or in   TrueType   The font is displayed correctly in the command prompt window.  
Like in   MS-DOS   As in, you do not have to prepare a code page.  
Starting a program assigned a new code page will use the new code page, but if it is in the program (except   CMD. Exe) is started before assigning a new code page, the program will use the original code page.  
example
To view the active code page settings, type:  

chcp

The following message appears:  

Active code page: 437 

To change the active code page to   850 (Multilingual), type:  

chcp 850

If the specified code page is invalid, the following error message is displayed:  

Invalid code page  

XOX