Chinese garbled characters in securecrt

Source: Internet
Author: User

1. modify the configuration of remote Linux machines

[[Email protected] ~] # Vi/etc/sysconfig/i18n

Change Lang to a character set that supports UTF-8
For example: lang = "zh_CN.UTF-8" or lang = "en_US.UTF-8" This article changes to the latter

2. Modify the session options of secure CRT.

Options-> session options-> appearance-> font-> New Character Set: Chinese gb2312-> character encoding for UTF-8

The securecrt encoding is consistent with that of Linux.

Remember to select a Chinese character set that supports utf8 !!

3. Set

Export lang = zh_cn.gbk

Export Language = zh_cn.gbk

Export lc_all = zh_cn.gbk

 

4. file encoding:

Vim xxx.txt

: Set fileencoding

: Set fileencoding = utf8

 

In vim, Chinese files in GBK and utf8 formats can be normally displayed.

However, when cat xxx.txt is used, the GBK file is not displayed normally.

Chinese garbled characters in securecrt

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.