执行
echo $LANG
命令输出:
zh_CN.UTF-8
,执行
locale
命令,输出
1.
LANG=zh_CN.UTF-8
2.
LC_CTYPE="zh_CN.UTF-8"
3.
LC_NUMERIC="zh_CN.UTF-8"
4.
LC_TIME="zh_CN.UTF-8"
5.
LC_COLLATE="zh_CN.UTF-8"
6.
LC_MONETARY="zh_CN.UTF-8"
7.
LC_MESSAGES="zh_CN.UTF-8"
8.
LC_PAPER="zh_CN.UTF-8"
9.
LC_NAME="zh_CN.UTF-8"
10.
LC_ADDRESS="zh_CN.UTF-8"
11.
LC_TELEPHONE="zh_CN.UTF-8"
12.
LC_MEASUREMENT="zh_CN.UTF-8"
13.
LC_IDENTIFICATION="zh_CN.UTF-8"
14.
LC_ALL=
说明
Linux
系统的编码为
UTF-8
,要让
Xshell
不显示乱码就需要将
Xshell
的编码方式
改为
UTF-8
。