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