Sideway
output.to from Sideway
Draft for Information Only

Content

MS DOS Command: CHCP
  Description
  Syntax
  Parameters
  Related Commands
  Remarks
   Requirements for using the CHCP command
   Assigning a new character set
  Examples

MS DOS Command: CHCP

Reference from Microsoft MS-DOS cmd help

Description

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 MS-DOS 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 6.22, see the COUNTRY.TXT file (located in the directory that contains your MS-DOS files).

Syntax

CHCP [nnn]

To display the number of the active character set, use the following syntax:

CHCP

Parameters

nnn Specifies the prepared system character set defined by the COUNTRY command in the CONFIG.SYS file. By default, MS-DOS provides character sets for the following countries and languages:
437 United States
850 Multilingual (Latin I)
852 Slavic (Latin II)
860 Portuguese
863 Canadian-French
865 Nordic

Additional countries and languages are supported by the EGA2.CPI and EGA3.CPI files. For more information, see the COUNTRY.TXT file, which is located in the directory that contains your MS-DOS files.

Related Commands

For more information about character sets, see the COUNTRY, NLSFUNC, and MODE (set device code pages)> command.

Remarks

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 program into memory.

Assigning a new character set

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.

Examples

To view the active character set setting, type the following command:

chcp

MS-DOS responds with a message similar to the following:

Active code page: 437

To change the active character set to 850 (Multilingual), type the following command:

chcp 850

MS-DOS 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, MS-DOS displays an error message in the following format:

Code page 850 not prepared for device nnn


©sideway

ID: 110700137 Last Updated: 7/21/2011 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Travel 18

Reference 79

Computer

Hardware 254

Software

Application 213

Digitization 37

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 431

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Set 1

Logic 1

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019