chcp(CMD) 19 June 1992 chcp(CMD) Name chcp - display the number of the active code page Syntax chcp [nnn] To display the number of the active code page, use the following syntax: chcp Parameter nnn Specifies the prepared system code pages defined by the country(CMD) command in the CONFIG.SYS file. The following list shows each code page that MS-DOS supports and its country or lan- guage: 437 United States 850 Multilingual (Latin I) 852 Slavic (Latin II) 860 Portuguese 863 Canadian-French 865 Nordic Notes Requirements for using the chcp command 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 pro- gram into memory. Assigning a new code page After you assign a new code page, any program you start uses that new code page. However, any program (not including COMMAND.COM) that you started before assigning the new code page will probably attempt to use the original code page. Examples To view the active code-page setting, type the following command: chcp MS-DOS responds with a message similar to the following: Active code page: 437 To change the active code page to 850 (Multilingual), type the following command: chcp 850 MS-DOS alerts you if the specified code page has not been prepared for your system. The following error message appears: Invalid code page If a device (screen, keyboard, printer) is not prepared for a code page, MS-DOS displays an error message in the following format: Code page 850 not prepared for device nnn Related commands For more information about code pages, see the country(CMD), nlsfunc(CMD), device(CMD), and mode(CMD) (set device code pages) com- mands.