Putty Chinese garbled _ How to Solve putty's problem of displaying Chinese garbled characters

Source: Internet
Author: User
Yes, this article is another piece of cake. When you use PuTTY to open it ?? Inux. After going in, I found that many places are garbled. How should this be done? Which of the following problems must be adjusted most often in the Chinese system? The first thought of flashing garbled characters is to adjust the character setting. If it is a pure English environment, it should be okay & hellip; but if it? If a program supports the Chinese interface, you need to modify the text editing method. Yes. This article is just a piece of cake.

When you use PuTTY ?? Inux. Many garbled characters are found after going in.

What should I do?

This problem occurs most often in Chinese systems.

What should I adjust? And

Continue to look down

The first thought of flashing garbled characters is to adjust character settings.

If it is a pure English environment, it should not be bad...

But if? If a program supports the Chinese interface, you need to adjust it separately.

How do I modify the text encoding?

It's very simple. Before going to Linux, do something on the PuTTY side first.

Method 1: (this method applies to all versions of Linux)

[PuTTy Configuration] → [Window] → [Translation] → stored ed data assumed to be in which character set:


-

Open the Use font encoding drop-down menu and select the Wanguo code UTF-8


Log on to PuTTY again.

Chinese characters are no longer garbled !!!


Method 2: (this method is not universal, for example, the i18n file does not exist in OpenSuSE)
How do I check the language used in the system environment?

Enter Environment Variables

$ Env

One column in Output is called LANG = zh_TW.UTF-8

This is the archives of the language family !! He is very important

The Chinese code is usually a zh_TW.UTF-8 or zh_TW.Big5

What? What will happen? When you? Why? What about the hennex baking system of the persimmon of a certain Tang jiaoyao zhibei? If the system finds that it is an inaccessible language, an error occurs.



Which file is used to maintain the materials of the language department?

$ Cat/etc/sysconfig/i18n

Of course it's the place set by the system! You can call a preset value or even modify it.

For general users, it is not recommended to make changes here.

1. garbled console Terminal

Add the following content to the last line of the/etc/profile file:

Export LC_ALL = "zh_CN.GB18030"

2. garbled xwindow Terminal

Add the following content to the last line of the/etc/sysconfig/i18n file:

Export LC_ALL = "zh_CN.GB18030" +







Garbled characters can be divided into two situations:

1. Terminal garbled characters (pure shell Interface)

Vi/etc/profile

Export LC_ALL = "zh_CN.GB18030: zh_CN.GB2312: zh_CN.GBK: zh_CN: en_US.UTF-8: en_US: en: zh: zh_TW: zh_CN.BIG5"

Save and exit, reboot system ..

2. garbled characters in X-window (graphic interface)

Vi/etc/sysconfig/i18n

LANG = "zh_CN.GB18030: zh_CN.GB2312: zh_CN.GBK: zh_CN: en_US.UTF-8: en_US: en: zh: zh_TW: zh_CN.BIG5"

LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN.GBK: zh_CN: en_US.UTF-8: en_US: en: zh: zh_TW: zh_CN.BIG5"

Save reboot...
Related Article

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.