Putty connection to linux Chinese Input and display problems
Source: Internet
Author: User
Putty connects to linux Chinese Input and display problems-general Linux technology-Linux technology and application information. The following is a detailed description. After a long time of input and display of Chinese Characters in LINUX. However, if you select a Chinese Language Pack during installation. As long as the putty encoding into the UTF-8 can be normal display. We can change the environment variables without installing the Chinese Language Pack.
1. Modify the. profile file under the user directory. Add the following two items. Save and exit
LANG = zh_CN.UTF-8
LANGUAGE = zh_CN: zh
Then let's take a look at the environment variable settings.
Root @ ubuntu :~ # Env | grep LANG
LANG = zh_CN.UTF-8
LANGUAGE = zh_CN: zh
Root @ ubuntu :~ # Export | grep LANG
Declare-x LANG = "zh_CN.UTF-8"
Declare-x LANGUAGE = "zh_CN: zh"
Root @ ubuntu :~ # Set | grep LANG
LANG = zh_CN.UTF-8
LANGUAGE = zh_CN: zh
If not. Errors may occur. Incorrect Input
You need to modify the environment variable again.
Export LANG = zh_CN.UTF-8
Export LANGUAGE = zh_CN: zh
Declare-x LANG = "zh_CN.UTF-8"
Declare-x LANGUAGE = "zh_CN: zh"
Then restart. Use putty to connect .. Code change friends UTF-8. Show and enter Chinese Characters
This article has passed the test in ubuntu centos freebsd. The same should be true for the release. You can set two environment variables.
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