Displays the number of the active character set (code page). You can also use the CHCP command to change the active character set for all devices that support character set switching.
You must install the NLSFUNC program before you can use the CHCP command.
For an introduction to using character sets and the CHCP command, see the chapter "Customizing For International Use" in the MS-DOS User's Guide.
Tables of the character sets included with the operating system are shown in the appendix "Keyboard Layouts and Character Sets" in the MS-DOS User's Guide. For information about additional code pages included with MS-DOS v6.22, see COUNTRY.
Display the active character set number:
Additional countries and languages are supported by the EGA2.CPI and EGA3.CPI files. For more information, see COUNTRY, which is located in the directory that contains your operating system files.
For more information about character sets, see COUNTRY,
MODE (set device code pages) commands.
Equivalent Linux BASH commands:
LANG environment variable - Used to determine the locale category for any category not specifically selected with a variable starting with LC_.
Before you can use the CHCP command, you must specify the location of the COUNTRY.SYS file by using the COUNTRY command and load the NLSFUNC program into memory.
After you assign a new character set, any program you start uses that new character set. However, any program (not including COMMAND.COM) that you started before assigning the new character set will probably attempt to use the original character set.
To view the active character set setting command:
The operating system responds with a message similar to:
Active code page: 437
To change the active character set to 850 (Multilingual):
The operating system alerts you if the specified character set has not been prepared for your system. The following error message appears:
Invalid code page
If a device (monitor, keyboard, printer) is not prepared for a character set, the operating system displays an error message in the format:
Code page 850 not prepared for device nnn