For compiled programs, Chinese characters are not displayed correctly when CMD and power shell are running.Online Search, you can re-order the window to modify:1. Open the CMD.exe command Line window2, change the code page through the chcp command, UTF-8 code page 65001Chcp 65001After you do this, the code page becomes UTF-8.The current window does solve the problem, but the re-opened CMD window or power shell window still does not display the kanji c
The encoding in CMD is ANSI and garbled if Chinese is not this encoding method. As a programmer, will often use the command window to view the execution log, but sometimes the encoding format is not correct, most of them are UTF8, in the online search for a lot of methods, a lot of useless, here to teach a specific method, you can change the Command window encoding mode to UTF8, then follow the steps to operateThe first step, open the command window cmdThe second step, modify the encoding method
Xp. CMD command For more information about a command, type the HELP command name assoc to display or modify the file extension association. at the commands and programs that you plan to run on your computer. attrib Display or change file properties. break set or clear extended CTRL+C check. cacls displays or modifies the file's access control List (ACLs). call calls this one from another batch program. cd displays the name of the current directory or changes it.
For compiled programs, Chinese characters are not displayed correctly when CMD and power shell are running.Online Search, you can re-order the window to modify:1. Open the CMD.exe command Line window2, change the code page through the chcp command, UTF-8 code page 65001Chcp 65001After you do this, the code page becomes UTF-8.The current window does solve the problem, but the re-opened CMD window or power shell window still does not display the kanji c
The background is this, because the project needs to be installed with silent install some programs, and the installation parameters are some high ASCII characters, such as Ùé. With the code, using the default encoding (ANSI, which I used in the French system) to create the bat file and write this character to the file, there is no problem. However, when the bat file is executed, it is found that the high ASCII characters are displayed in the console as other characters!!! I think for a long tim
CMD command: Start-to-run, type cmd or command (you can see the system version, the file system version on the command line)CHCP modifying the default character setCHCP 936 Default ChineseChcp 650011. Appwiz.cpl: Programs and functions2. Calc: Start Calculator5. Chkdsk.exe:Chkdsk disk Check (Administrator Run command prompt)6. cleanmgr: Open Disk Cleanup Tool9. Cmd.exe:CMD Command Prompt10. Auto Power off commandShutdown-s-T 600: Auto power off after
CMD command: Start-to-run, type cmd or command (you can see the system version, the file system version on the command line)CHCP modifying the default character setCHCP 936 Default ChineseChcp 650011. Appwiz.cpl: Programs and functions2. Calc: Start Calculator5. Chkdsk.exe:Chkdsk disk Check (Administrator Run command prompt)6. cleanmgr: Open Disk Cleanup Tool9. Cmd.exe:CMD Command Prompt10. Auto Power off commandShutdown-s-T 600: Auto power off after
1. Composition of the nls_lang ParameterThe nls_lang parameter consists of the following parts:Nls_lang = The meanings of nls_lang are as follows:Language:-Oracle message language-Display month and day in dateSpecified by territory-Currency and Number Format-Habits of regions and computing weeks and datesCharacterset:-Control character sets used by Client ApplicationsUsually set or equal to the client (such as Windows) code pageOr set the Unicode application to utf8.Run the
pages ,. OCP indicates the active OEM code page obtained from the system ,. ACP indicates the active ANSI code page obtained from the system.
"": Set locale according to the active ANSI code page in the Windows system environment .. The OCP,. ACP, and Environment Code Page are all affected by the settings of "region and language options" in the control panel. After the Simplified Chinese version of Windows is installed by default, the ANSI code page of the activity is 936 (GBK). You can use th
C ++ system function usage (c)
INT system (const char * command );
Int _ wsystem (const wchar_t * command );
Command: command to be executed
Sample:
// System. c
# Include
Void main (void)
{
System ("type system. c ");
}
The system function can call some DOS commands, such
System ("CLS"); // clear screen, equivalent to using the CLS command on DoS
The following lists common DOS commands that can be called using the system function:
Assoc displays or modifies file extension associations.
At is t
1. Composition of the NLS_LANG ParameterThe NLS_LANG parameter consists of the following parts:NLS_LANG =
The meanings of NLS_LANG are as follows:LANGUAGE:-Oracle message language-Display month and day in dateSpecified by TERRITORY-Currency and Number Format-Habits of regions and computing weeks and datesCHARACTERSET:-Control character sets used by Client ApplicationsUsually set or equal to the client (such as Windows) code pageOr set the unicode application to UTF8.
Run the
should appear in the first line;3) if the file contains a line of code, and the line of code only contains the _ end _ mark, and there are no blank characters before and after the mark, the Ruby interpreter stops processing the file. The rest of the file can contain any data, and the program can read it through the IO Stream object data.
Ruby supports Unicode and other character set encoding. In 1.8, the-ku option is required. In 1.9, you only need to add the following annotations at the begin
Source: China dos Alliance
For latency extension of environment variables, use set /? You can see some of the instructions, but considering its poor translation level, it is recommended that you switch chcp 437 to English to view the original English instructions before viewing. Given that this article has been very detailed, and there are several
Code Examples are not difficult to understand. Only a few supplements are provided here.
In many of
When you use the sqlite3 tool in the ADB shell to display Chinese characters, the Chinese characters displayed on the console are garbled because of the character set in cmd. solution,In cmd, enter chcp 65001① Using sqlitedatabase ② sqliteopenhelper ③ using contentprovider④ Database file management①:Sqlitedatabase SQLite = openorcreatedatabase ("Diary. DB", mode, null );Use cursor to bind listview data:For example:Sqlitedatabase SQLite = openorcreated
);
String phone = cursor. getString (2 );
System. out. println (id + "" + name + "" + phone );
}
// Release resources
Cursor. close ();
Db. close ();
}
}
In SQLite, all data is stored as strings.
Android Database supports Chinese display
Three ways to view data in SQLite tables
1. Write an SQL statement to check the data and display it in logcat.
2. In the independent data zone of the application, pull the database and view it in the tool.
3. view the table data in the SQLite database on the
ArticleDirectory
Solution
Displayed correctly after resolution
Legacy problems
InIronruby-write automated test scriptsThe result displayed in netbeans is correct, and garbled characters are displayed in DOS, as shown in:
In actual application, an automated test is performed on a bat file, instead of under netbeans, which is obviously a text encoding problem. What settings should I have to set to display Chinese Characters in DOS. I introduced the UTF-8 format used by r
:26516): Use port when Tomcat is stoppedStart WebAdmin automatically when system starting? [Y,n] (Default:Y) is self-bootingWeb Service default address: http://localhost:26515/Default User name/password postgres/postgres;Default address when Tomcat stops: http://localhost:26516/Default User name/password postgres/postgres.WebAdmin Web service Startup/shutdown (the following two programs mentioned in the official documentation were not found)~\symfoserver64\gui\sbin\webadminstart.exe~\symfoserver
, that is, change 03 54 to 03 67
Import the modified DMP File
Method 2: Modify the registry entry nls_lang to utf8
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/battlehawk/archive/2009/12/28/5090175.aspx
During the export operation, it is very important to set the character set of the client, that is, the client's nls_lang settings.The nls_lang parameter consists of the following parts:Nls_lang = The meanings of nls_lang are as follo
@ Echo off: The color text chcp 437> NUL graftabl 936> nulif not exist config is displayed in cmd. NT copy % WINDIR % \ system32 \ config. NT config. NT @ clsecho device = % WINDIR % \ system32 \ ANSI. sys/x> % WINDIR % \ system32 \ CONFIG.NT@echo.command/cecho command/cecho [1; 36 m boarding @ echo.@echo.command/cecho [1; 35 m Bai Yi Shan do, [33 m Yellow river current. @ Echo. Command/cecho [1; 32 m for thousands of miles, [31 m for the next floor.
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.