1、secureCRT
session中的设置
1)Session Option→选字体(新宋体,or others),字符集选Chinese_GB2312
2)vim /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
3)vi ~/.bash_profile
export LANG=zh_CN.UTF-8
2、vim中
在1设置的基础上:
1):set encoding=utf-8
2)vim /etc/.vimrc
set fileencodings=ucs-bom,utf-8,cp936 //按照fileencoding指定的文件编码方式来解析文件
:set fileencoding //查看当前的编码方式
参考
【1】 http://www.cnblogs.com/mydomain/archive/2011/09/01/2161476.html
【2】 http://blog.csdn.net/hansel/article/details/5163648
【3】 http://hi.baidu.com/zengyinfei/blog/item/95efddaf1a8f5dc47dd92a51.html