Windows modifies PowerShell (Command Prompt) default Chinese encoding method

Source: Internet
Author: User

The system ("mode con cp select=65001") or System ("Chcp 65001") can be called directly into the code if none of the following methods are useful. Of course, the premise is that you use C language as well.

********************************************

Purpose: Because other coding is often used when programming, but using the CHCP command can only modify the current Chinese encoding mode

CHCP command
12 chcpchcp 65001

Modify Registry Mode

Win+r

Regedit

Locate registry location: [Hkey_current_user\console\codepage]

Attached Code table
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 代码页       国家(地区)或语言437          美国708          阿拉伯文(ASMO 708)720          阿拉伯文(DOS)850          多语言(拉丁文 I)852          中欧(DOS) - 斯拉夫语(拉丁文 II)855          西里尔文(俄语)857          土耳其语860          葡萄牙语861          冰岛语862          希伯来文(DOS)863          加拿大 - 法语865          日耳曼语866          俄语 - 西里尔文(DOS)869          现代希腊语874          泰文(Windows)932          日文(Shift-JIS)936          中国 - 简体中文(GB2312)949          韩文950          繁体中文(Big5)1200         Unicode       1201         Unicode (Big-Endian)1250         中欧(Windows)1251         西里尔文(Windows)1252         西欧(Windows)1253         希腊文(Windows)1254         土耳其文(Windows)1255         希伯来文(Windows)1256         阿拉伯文(Windows)1257         波罗的海文(Windows)1258         越南文(Windows)20866        西里尔文(KOI8-R)21866        西里尔文(KOI8-U)28592        中欧(ISO)28593        拉丁文 3 (ISO)28594        波罗的海文(ISO)28595        西里尔文(ISO)28596        阿拉伯文(ISO)28597        希腊文(ISO)28598        希伯来文(ISO-Visual)38598        希伯来文(ISO-Logical)50000        用户定义的50001        自动选择50220        日文(JIS)50221        日文(JIS-允许一个字节的片假名)50222        日文(JIS-允许一个字节的片假名 - SO/SI)50225        韩文(ISO)50932        日文(自动选择)50949        韩文(自动选择)51932        日文(EUC)51949        韩文(EUC)52936        简体中文(HZ)65000        Unicode (UTF-7)65001        Unicode (UTF-8)

Windows modifies PowerShell (Command Prompt) default Chinese encoding method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.