xshell中文编码设置

输入:       locale

输出:LANG=zh_CN.UTF-8

LC_CTYPE="zh_CN.UTF-8"

LC_NUMERIC="zh_CN.UTF-8"

LC_TIME="zh_CN.UTF-8"

LC_COLLATE="zh_CN.UTF-8"

LC_MONETARY="zh_CN.UTF-8"

LC_MESSAGES="zh_CN.UTF-8"

LC_PAPER="zh_CN.UTF-8"

LC_name="zh_CN.UTF-8"

LC_ADDRESS="zh_CN.UTF-8"

LC_TELEPHONE="zh_CN.UTF-8"

LC_MEASUREMENT="zh_CN.UTF-8"

LC_IDENTIFICATION="zh_CN.UTF-8"

LC_ALL=

说明系统的中文编码是采用utf8的,那么为了在xshell中正常的显示中文,我们要把xshell编码方式改成utf8,

[文件]-->[打开]-->在打开的session中选择连接的那个 ,点击properties -> [Terminal ] ,在右边的translation先选择utf8就可以啦.

相关推荐