CHCP

(from Change Code Page)

Displays or sets the active code page number.

CHCP [nnn]

Where:

  • nnn - Specifies the number of a code page.

Not specifying the parameter displays the active code page number.

The following table shows some valid codes for use with CHCP (source: Microsoft Learn - CHCP):

CodiceAssociated country or language
437United States
850Multilingual (Latin I)
852Slavic (Latin II)
855Cyrillic (Russian)
857Turkish
860Portuguese
861Icelandic
863French (Canada)
865Nordic languages area
866Russian
869Modern greek
936Chinese

Examples:

1. Set Chinese language code page:

chcp 936

 

2. Display the active code page number:

chcp

Comments