Export lang= "zh_cn.gb118030"
In general, it is necessary to set the environment variables of the Linux system only in/etc/profile (global) or ~/.BASHRC (single user). But for the lang variable, sometimes even if you export in all of these initialization scripts, LANG's value remains motionless. In fact, you need to modify the contents of the/etc/sysconfig/i18n file.
vi/etc/sysconfig/i18n
Lang= "ZH_CN. UTF-8 "
Lang= "en_US"
Supported= "ZH_CN. Utf-8:zh_cn:zh:zh_tw. Utf-8:zh_tw:zh:en_us. Utf-8:en_us:en "
Sysfont= "Latarcyrheb-sun16"
SSH login to Linux, SSH terminal sometimes garbled, even if you set Lang=en_us. UTF-8, too. I've tried securecrt,openssh,ssh Secure Shell client, and that's the problem. Sometimes it's fine to change the client's settings, but sometimes you can only run one command at a time after changing the client's settings, and then it becomes garbled.
An accidental opportunity to see on the internet that someone said to change the value of the lang variable to "C" on the line. But really evil, just a lang=c, what problems are solved, do not set the client, it is inexplicable! But I still don't know what that "C" means, It is so strong (in fact, casually set a number of letters, or directly placed empty: Export lang= "", the problem can be resolved, as long as not ZH_CN. UTF-8)
Set Linux environment variable Lang