Scenario: Linux sends query instructions to window2003 cmd via winsshd
Environment: Linux CRT remote connection terminal set UTF-8 (International code)
Issue: Command execution completed, Linux terminal display as garbled
Process:
1. When the Linux batch management window2003 server check the policy, the CRT terminal display garbled;
2. Check the DOS output character set--Properties--(My is GBK)
Error 3. Change all scripts and environment variables to GBK,CRT, output or garbled
4. Change the CRT terminal character set to GB2312 (no changes in the shell, character set Lang does not change)
5. Execute the script the whole person Meng Meng da
6. Find literature found:GBK is a Chinese character coding standard, the full name of the code extension code in Chinese characters.
GB2312 is a national code specification for Chinese character internal codes.
Instantaneous sense of the country is the world!!!
This article is from the "Work Experience" blog, please be sure to keep this source http://chlipeng.blog.51cto.com/8928892/1688572
Linux terminal call DOS output character output display garbled problem