Chcp
Displays the number of active console code pages, or changes the active console code page for the console. If used without parameters, CHCP displays the number of active console code pages.
Grammar
chcp [nnn]
Parameters
Specifies the code
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
Chcp
Show activity Console
CodeNumber of pages, or change the active console code page of the console. If no parameter is available, the chcp displays the number of code pages in the active console.
SyntaxChcp [NNN]
Parameters
Specifies the
MySQL in the console, insert data into a table in the database, insert the data in Chinese, the results always show error incorrect string ..., cannot be inserted successfullyGuessing is an inconsistent encoding format. Console encoding format can
To solve the problem of command line garbled code and encoding, run the command chcp www.2cto.com to display or set the active code page number CHCP [nnn] nnn to specify the code page number. If no parameter is added, type CHCP to display the active
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
Sqlite3 command line to view Chinese garbled problem solved, sqlite3 Chinese
The SQLite library contains a command line named sqlite3, which allows you to manually enter and execute SQL commands for the SQLite database. The database we create
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.