CentOS5.0 system Putty garbled problem-Linux Enterprise Application-Linux server application information, the following is a detailed reading. Article name: Putty garbled problem in CentOS5.0
Copyright information: this information can be reproduced at will, but the source and author information must be indicated.
Prepared by: min Gong wan
Time: 2007.10.22
Today, the company used Putty to remotely log on to the computer (CentOS System) in its own house using its own SSH port. It found that the machine in the house had garbled characters and thought it was a problem with my document, however, it is still normal to download this document. Obviously, the problem is that the SSH client tool such as Putty has a problem in character set parsing on the terminal.
Solution:
1. query the configurations of your machine (Putty displays garbled characters ):
[Weigw @ localhost openssl] $ echo $ LANG
Zh_CN.UTF-8"
2. Because the character set is selected for UTF-8, so there are still some problems with Chinese parsing, now the temporary setting of variable test garbled solution.
[Weigw @ localhost openssl] $ export LANG = zh_CN.GB18030
[Weigw @ localhost openssl] $ echo $ LANG
"Zh_CN.GB18030"
3. Permanently apply the character set to directly modify the relevant content in the/etc/sysconfig/i18n file.
LANG = "zh_CN.GB18030"
LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh"
SYSFONT = "lat0-sun16"
SYSFONTTACH = "8859-15"
This problem has been solved. This method can be used to solve general SSH access garbled characters in Linux and Unix systems. However, special attention should be paid to the need for tools to work with the inability to parse Chinese characters on the Linux terminal. I use the zhcon Chinese environment, however, the response is a little slow (no other problems have been found to better solve the Chinese Character Problem on Linux terminals ).
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service