Ssh,telnet Terminal Chinese display garbled solution
The code is as follows |
Copy Code |
# vi/etc/sysconfig/i18n |
The content:
The code is as follows |
Copy Code |
Lang= "en_US. UTF-8 " Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en " Sysfont= "Latarcyrheb-sun16" |
To
The code is as follows |
Copy Code |
Lang= "ZH_CN. GB18030 " Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN" Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en " Sysfont= "Lat0-sun16" |
No need to reboot, it will take effect immediately.
In this way Chinese can normally be shown in the Ssh,telnet terminal. If you still can't, you can do this:
1, console terminal garbled
Add the following on the last line of the/etc/profile file:
The code is as follows |
Copy Code |
Export Lc_all= "ZH_CN. GB18030 " |
2, Xwindow terminal garbled
Add the following on the last line of the/etc/sysconfig/i18n file:
The code is as follows |
Copy Code |
Export Lc_all= "ZH_CN. GB18030 " |
3.Secure CRT Display garbled
1, configure VIM, set:
Syntax on
2. Set up secure CRT:
The code is as follows |
Copy Code |
Options->session Options-> Terminal-> emulation select ANSI or Linux or Terminal, you must hook ANSI Xterm |
Note: I am using the securecrt, want to make this configuration immediately effective, to disconnect the server, and then use VIM to open the editing text, you can see the effect.
Principle: If the Linux front landing, the need for the effect of all normal, only through the SECURECRT landing, did not achieve the desired effect, then the problem can only be on the SECURECRT.