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):
Codice | Associated country or language |
---|---|
437 | United States |
850 | Multilingual (Latin I) |
852 | Slavic (Latin II) |
855 | Cyrillic (Russian) |
857 | Turkish |
860 | Portuguese |
861 | Icelandic |
863 | French (Canada) |
865 | Nordic languages area |
866 | Russian |
869 | Modern greek |
936 | Chinese |
Examples:
1. Set Chinese language code page:
chcp 936
2. Display the active code page number:
chcp
Comments