secureCRT连接ubuntu显示中文乱码的解决方法

一、ubuntu设置
1、在/var/lib/locales/supported.d/local文件中添加一行:
zh_CN.UTF-8 UTF-8

upload successful
执行sudo locale-gen下载文件

2、在/etc/environment文件中添加两行:
LANG=”zh_CN.UTF-8”
LC_ALL=”zh_CN.UTF-8”

upload successful

3、在~/.profile文件中添加两行:
export LANG=”zh_CN.UTF-8”
export LC_ALL=”zh_CN.UTF-8

upload successful
执行source ~/.profile

二、secureCRT设置
1、选择options – session options,弹出设置窗口
2、选择terminal – emulation,terminal下拉表选择linux,并在”ansi color”前面方框打上勾

upload successful

3、选择terminal – appearance,”current color scheme”选择traditional

upload successful
font字体选择fangsong,script选择”Chinese GB2312”

upload successful
character encoding下拉表选择utf-8

upload successful

退出当前crt窗口,重新登录试试!