Get the App
SLTechnology News&Howtos  ›  Development  › 

How Chcp displays the number of active console code pages or changes the active console code pages for that console

Shulou Source: shulou.com Published: 2022-06-03 06:55:16 10月01日 Update

This article is about how Chcp displays the number of active console code pages or changes the active console code pages for that console. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Chcp

Displays the number of active console code pages, or changes the active console code page for that console. If used with no parameters, chcp displays the number of active console code pages.

Grammar

Chcp [nnn]

Parameters.

Specify the code page. The following table lists all supported code pages and their countries (regions) or languages: code page countries (regions) or languages

437 United States

850 languages (Latin I)

852 Slavic (Latin II)

855 Cyrillic (Russian)

857 Turkish

860 Portuguese

861 Icelandic

863 Canada-French

865 Germanic

866 Russian

869 Modern Greek

/?

Displays help at the command prompt.

Annotation

The original equipment manufacturer (OEM) code page will display correctly in a command prompt window that uses raster fonts only if you install it with Windows XP. Other code pages can be displayed correctly in full-screen mode or in command prompt windows that use TrueType fonts.

As in MS-DOS, you don't have to prepare the code page.

Starting a program that assigns a new code page will use the new code page, but if the program (except for Cmd.exe) starts before assigning a new code page, the program will use the original code page.

Example

To view the active code page settings, type:

Chcp

A message similar to the following appears:

Active code page: 437

To change the active code page to 850 (multilingual), type:

Chcp 850

If the specified code page is invalid, the following error message is displayed:

Invalid code page

Thank you for reading! This is the end of the article on "how Chcp displays the number of active console code pages or changes the active console code pages of the console". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Code console control activity quantity command program prompt content parameter country region font more article language Russian multilingual Latin Latin Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS vpn Redmi MariaDB