1) Description:
windows is Gbk,linux, which is UTF-8. The Chinese, which is edited under Windows, is garbled under Linux. To resolve this issue, modify the secure CRT character encoding to UTF-8
2) View supported character sets:
What if there is no Chinese language?
You can download and install the Chinese Language pack Yum groupinstall chinese-support(not networked through other computers to download, upload it)
# locale-a
[Email protected] ~]# Locale-a|grep Zhzh_CNzh_CN.gb18030zh_CN.gb2312zh_CN.gbkzh_CN.utf8zh_HKzh_HK.big5hkscszh_ HK.utf8zh_SGzh_SG.gb2312zh_SG.gbkzh_SG.utf8zh_TWzh_TW.big5zh_TW.euctwzh_TW.utf8
modifying character sets
[Email protected] ~]# echo $LANGen _us. Utf-8[[email protected] ~]# LANG=CH_CN. UTF-8
[Email protected] ~]# cat/etc/sysconfig/i18nlang= "en_US. UTF-8 "
[Email protected] ~]# echo "lang=\" CH_CN. Utf-8\ "" >/etc/sysconfig/i18n[[email protected] ~]# cat/etc/sysconfig/i18n lang= "CH_CN. UTF-8 "
Execute the following command or reboot to take effect.
source/etc/sysconfig/i18n
Open CRT session option, appearance-character encoding-utf-8.
650) this.width=650; "title=" 30.jpg "src=" https://s4.51cto.com/wyfs02/M00/A2/8A/ Wkiol1mhvlmzfz0caafwt4lhyp4320.jpg "alt=" Wkiol1mhvlmzfz0caafwt4lhyp4320.jpg "/>
This article is from the "Sandshell" blog, make sure to keep this source http://sandshell.blog.51cto.com/9055959/1959654
Troubleshooting SECURECRT connection CentOS using vim when editing Chinese garbled