The only test two verified
Linux when you choose to use Chinese, when using SSH, TELNET login Operation command will appear in Chinese garbled; pass the test under RHEL5
Modify the/etc/sysconfig/i18n to read as follows: [root@php ~]# vi/etc/sysconfig/i18n #LANG = "ZH_CN. UTF8 "lang=" ZH_CN. GB18030 "language=" ZH_CN.GB18030;ZH_CN.GB2313:ZH_CN "supported=" ZH_CN. Gb18030;zh_cn;zh:en_us. Utf-8;en_us:en "sysfont=" Lat0-sun16 "
One, Chinese characters garbled, virtual machine Linux installation when the default language is used in Simplified Chinese, when I press CTRL + ALT+F1 switch terminal, when typing a command echo should be a hint, but all garbled, this is because the terminal does not use the correct character set to
The solution is as follows: #export LANG=ZH_CN. UTF-8
Two (already verified) English character garbled: When the situation is the opposite, if the result of the English display and the end of the Chinese character set to explain the same will appear garbled how to solve it:
#export Lang=en_us
Third, the terminal interface garbled: Sometimes we accidentally use cat binary system led to the terminal interface garbled, because the binary file more control code;
The solution is to use reset Terminal Reset command to solve the problem: #reset
Four, other kinds of terminal garbled sometimes through SSH into a remote LINUX server, cat a core file, and the Reset command can not succeed
First cat A python compiled file copy content to Clipboard code: # Cat Fibo.pyc m? {Shen c@sd Zd ZdS (ccs:d\}}x ' | | jo| g| | |}} Qwds (Nii (TATBTN) (RRR (tfibo.pytfibs<br/>
ccsig}d\}}x0| | Jo "|i| | | |}}" qw| S (Nii (Tresultrrrtappend (rrrr) (Rtfib2s N (RR (RR (Rt?s oracle@linux-suse:~vt102vt102 not Found oracle@linux-suse:~
On the SSH terminal to see the garbled, prompt are disorderly, you can use the following command to restore copy content to the Clipboard code: # tput sgr0 garbled problem is caused by SSH problems, because in other terminals under the,cat with a sample file, will not produce garbled, is the reason for the test of garbled code copy content to the Clipboard: # ^n just use ctrl+v,ctrl+n on the use of screen garbled, of course, after resuming trial copy content to the Clipboard Code: # echo -e ' \xe ' screen again garbled, good, Redo Copy content to clipboard code: # echo -e ' \XF ' above is a need to blind, because the screen is garbled, the final problem is caused by the hexadecimal character e , the solution is very simple, the hexadecimal character F can.