Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report