Solve Putty Chinese garbled "reprint"

Source: Internet
Author: User

Reprint: http://lhdeyx.blog.163.com/blog/static/3181969720091115113716947/

Open putty, select windows--->appearance---> font settings in category to change "font" to "Fixedsys" (or other Chinese font), character set is chinease_gb2312

Why is it still garbled?

If it is still garbled, execute the following command to see the system's character set echo $LANG $LANGUAGE
Oh, the original system character set is UTF-8 ah. To return to the previous selection of the character set, select the translation on the left side of the configuration window, and select "character" in the Received data assumed to is in which UTF-8 set drop-down list on the right
Under 99% of cases, Chinese characters are not garbled. Finally, in short, PuTTY in the garbled solution: First look at the system's character set, if it is UTF-8, then it is simple, choose a good Chinese font, and then code to choose UTF-8 on the line. If the encoding is GB2312, GBK, GB18030, of course, including BIG5 these, in the PuTTY coding choices do not see these encodings, then choose the last "Use font encoding", most of the situation so there is no problem, Anyway, I don't have any exceptions. Linux now if the default language is selected as Chinese, the default encoding is UTF-8. Previously installed Redhat as 3 o'clock, the language selection is Chinese, the default encoding is zh_cn.gb2312, zh_cn.gb18030, as if starting from as 3 update 6, including the current AS4, AS5, the Chinese default encoding is Zh_cn.utf8. As for Debian, Ubuntu and so on, it seems to have always been UTF-8. As for the use of UTF-8, or GB2312, GBK or GB18030? Personally, I'm inclined to UTF-8. After all, most of the software we use is foreign, the processing of Chinese code is somewhat problematic, PuTTY nature is no exception. In the following diagram, I changed the terminal code to Zh_cn.utf8, and then I changed the character set of PuTTY to UTF-8 according to the previous method. Then enter the Chinese character "Chai Feng" in the terminal, press the left ARROW key, can see the Chinese character display is very normal.
I re-modified the terminal's code to zh_cn.gb2312, and, similarly, changed the PuTTY character set to the last "Use font encoding". or in the terminal input Chinese characters "Chai Feng", press the left ARROW key later, you will see the Chinese characters garbled. as for which code, mainly to see the decision of the leadership, our leaders like GBK, even GB18030 are not. In the past when using Debian, it seems that GBK encoding is not supported by default. These years the company's development in the Chinese character coding problem has been a few times trouble, is not in Iso8859-1, gb2312/gbk/gb18030 and UTF-8 toss to toss to

Solve Putty Chinese garbled "reprint"

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.