Chcp command

Updated: 11/12/2023 by Computer Hope
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.

Availability

Chcp is an external command that is available for the following Microsoft operating systems as chcp.com.

Country and Regions

Keybrd2.sys Country/Regions
274, 275 - Brazil
442 - Bulgaria
319 - Greece
161 - Iceland
118 - Macedonia, Serbia, and Montenegro
333 - Romania
441 - Russian
440, 179 - Turkish

Code pages

EGA.CPI Codepages
437 - United States
850 - Multilingual (Latin I)
852 - Slavic/Eastern European
860 - Portuguese
863 - Canadian-French
865 - Nordic

EGA2.CPI Codepages
737 - Greek II
850 - Multilingual (Latin I)
852 - Slavic/Eastern European
857 - Turkish
861 - Greek

EGA3.CPI Codepages
437 - United States
850 - Multilingual (Latin I)
852 - Slavic/Eastern European
855 - Cyrillic I
866 - Russian (Cyrillic II)

Code syntax

Displays or sets the active code page number.

CHCP [nnn]

The nnn specifies a code page number.

Type CHCP without a parameter to display the active code page number.

Code examples

chcp

Display the page number.

chcp 447

Sets the active page to 447.

How to load

Note

If you are using MS-DOS, you would want to substitute c:\windows\command with c:\dos in the examples below.

Autoexec.bat

country=354,861; c:\windows\command.country.sys
Device=c:\windows\command\display.sys con=(,,2)

Config.sys

mode con cp prepare=((861 850) c:\windows\command\ega2.cpi)
mode con cp select=861
keyb is,,c:\windows\command\keybrd2.sys