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 page. The following table lists all supported code pages and their country or language: code page country (region) or
This article is collected and collated by www.169it.comIn 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 American, that is, the encoding is the Chinese character set or the western character set.If you want to display the UTF-8 characters correctly, you can follow these steps:1. Open the CMD.exe com
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 American, that is, the encoding is the Chinese character set or the western character set.If you want to display the UTF-8 characters correctly, you can follow these steps:1. Open the CMD.exe command Line window2, change the code page through the
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 code page. The following table lists all supported code pages and their country or language: code page country or language437 USA850 multilingual (lati)852 Slavic
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 be modified with the CHCP commandCHCP [nnn]NNN Specifies the code page number.Type CHCP without parameters to display the active code page number.NNN specifies an
1234567891011121314151617
rem 英文chcp 437rem 日文chcp 932rem 简体中文chcp 936 rem 韩文chcp 949rem 繁体中文chcp 950rem utf-8chcp 65001
If the default code page properties of CMD are not modified, then modify the registry:1 win key +r Open the Run dialog box and enter Reged
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 code page number. Nnn specifies an existing system character set, which is defined by the COUNTRY command in the CO
?);So how can we make cmd display the UTF-8 encoded characters? Here you need to know something about it:Chcp commandCommand in the chcp ms dos to display or set the active code page number. Usage:C: \ users' \ 002778 \ Desktop> chcp /?Displays or sets the active code page number.CHCP [nnn]Nnn specifies the code page number.Enter CHCP without parameters to d
?, ' 05922186110 ', ' Chain 卞磭 Yue? ';So how do you get cmd to display these UTF8 encoded characters? Here are some things to know about:CHCP commandCHCP is a command in MS DOS that is used to display or set the active code page number . Usage is:C:\USERS\002778\DESKTOP>CHCP/? Displays or sets the active code page number. CHCP [nnn] nnn Specifies the code page number. Type
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 simplified Chinese characters when the console program is running? Console. writeline (however, you can enter console. Readline in simplified Chinese characters)
Find the network and find a sol
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 simplified Chinese characters when the console program is running? Console. writeline (however, you can enter console. Readline in simplified Chinese characters)
Find the network and find a solution to the prob
Tags: blog http os ar strong data Art div problemThe SQLite library contains a command line named Sqlite3, which allows the user to manually enter and execute SQL commands for the SQLite database. The database we create through the program is typically located in the package/databases of the content class where the/data/data/program DB is set, and the Sqlite3 database name can be entered into the SQL command line mode for database operation under this path.If not set, the Command Line window to
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 through the program is generally located in the package/databases of the content class set by/data/program db. In this path, execute the sqlite3 database name to enter the SQL command line mode, perform database operations.
If this parameter is not set, the
This is a creation in
Article, where the information may have evolved or changed. Recently began to learn the go language, feel very interesting, then from the HTTP start, wrote a Web hang program. For Go version r59-201108 the latest version, low version compiled pass.
webqq.go/* *go Language Discussion group: 102319854 *go Language Official website: www.golang.org * Author: Undead crawler * Home: http://www.gososo.org http://www.daohang361.com /news/index.html * Witness Track * Garbled soluti
/details/1723658
The command line client uses GBK encoding. no matter what encoding your table is, you must declare that the client is GBK encoded, that is, set names gbk;
Try inputting set names gbk in mysql editingCan refer to this article http://blog.csdn.net/wzwsj1986/article/details/1723658
Both my database and table are in the utf8 encoding format. as you said, this direction should be used to change the encoding format, but I need DOS to work with my mysql encoding, instead of usin
characters in Oracle? You can use the following statement to check the settings of the database character set.
Copy codeThe Code is as follows:
SQL> select * from v $ nls_parameters where parameter = 'nls _ CHARACTERSET ';
PARAMETER VALUE
-----------------------------------------------
NLS_CHARACTERSET AL32UTF8
2. client operating system character set: the character encoding used by the client operating system to store characters.For Windows, you can use the
; select * from v$nls_parameters where parameter='NLS_CHARACTERSET'; PARAMETER VALUE ------------------------------ ----------------- NLS_CHARACTERSET AL32UTF8
2. client operating system character set: the character encoding used by the client operating system to store characters. For Windows, you can use the chcp command to obtain the code page ):
[sql] C:\Users\xianzhu>c
This problem many people will not know at the beginning, of course, including once I, when used, had to resort to the great groove and Niang. There is a way to set up online, but say clearly enough detailed system, say set font for: Lucida Console. The problem is, in the default mode, only the dot matrix font, which has what Lucida Console. So, after your own successful setup, take out and share the next process, let us find out the Lucida console to set it.Here's what you need to know first:CHC
exist, but should look for *. cnf.
2. Back up cp/etc/init. d/mysql/my. cnf/etc/my. cnf. bak before modification.
Open my. cnf and modify the encoding.
# Sudo vi/etc/init. d/mysql/my. cnf
Add under [mysqld]
Default-character-set = utf8
Add under [client]
Default-character-set = utf8
3. Restart mysql
Use unused commands to restart your mysql instance based on the method in which you install mysql. If you have configured the mysqld auto-start mode, you can execute
Cd/usr/bin/
Mysqladmin-uroot-proo
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 American, that is, the encoding is the Chinese character set or the western character set.If you want to display the UTF-8 characters correctly, you can follow these steps:1. Open the CMD.exe command Line window2, change the code page through the
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.