Troubleshooting SECURECRT connection CentOS using vim when editing Chinese garbled

Source: Internet
Author: User
Tags i18n locale

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

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.