linux显示中文
查看字符编码 locale
修改字符编码 dpkg-reconfigure locales
Debian and Ubuntu /etc/default/locale
ssh输入中文 修改 /etc/default/locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE=C.UTF-8
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=
- 本地访问远程终端,本地的locale和远程的locale中的变量相同可以避免乱码