In a Chinese Windows system, if a text file is Utf-8 encoded, the contents of the file are not displayed correctly in the Cmd.exe command-line window (the so-called DOS window). By default, the code page used in the command-line window is Chinese or
In A. SQL file that contains Chinese characters, we can see that it is UTF-8 encoded in the Eclipse attribute, as shown in the following figure,However, when you view this file on the Windows console (for convenience, I copied the file to the
Using the console to write some simple programs is a good choice.
However, in windows, the console cannot output UTF-8 text. Try the following methods by netizens and yourself:
First
Traditional operating system, chcp 950
C # Can't I
Using the console to write some simple programs is a good choice.
However, in windows, the console cannot output UTF-8 text. Try the following methods by netizens and yourself:
First
Traditional operating system, chcp 950
C # Can't I display
Document directory
ASCII
GB2312
GBK
UTF Encoding
Setlocale
Miserable programmer
ASCII
Table language English and Western European language.
ASCII is represented by 7 characters, which can represent 128 characters. Its Extension uses 8
In a Chinese Windows system, if a text file is UTF-8 encoded, the contents of the file are not displayed correctly in the CMD.exe command-line window (the so-called DOS window). By default, the code page used in the command-line window is Chinese or
There is a file that is UTF8 encoded in the Eclipse attribute and contains Chinese:But when you view this file in the Windows console (for convenience, I copied the file to the desktop), it is garbled:C:\users\002778\desktop>type abc.sqluse
Since the use of sublime has been using SUBLIME+GCC to write C programs, but there is a problem is disturbing people.Generally new source file is Utf-8 encoding mode, but the Windows console is GBK encoding (sublime console cannot input, then give
Open the CMD.exe command-line window and change the code page with the CHCP commandUTF-8 code page for 65001,ansi/oem-Simplified Chinese GBK for 936,window default OEM-US 437If the chcp command gets 437, then it must not display Chinese, at this
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.