Skip to content

nano 中文乱码问题

bash
nano /etc/environment

设置内容

bash
LANG=zh_CN.UTF-8
LANGUAGE="zh_CN:zh"
LC_ALL=zh_CN.UTF-8
bash
source /etc/default/locale

设置内容

bash
LANG=zh_CN.UTF-8
LANGUAGE="zh_CN:zh"
LC_ALL=zh_CN.UTF-8
bash
source /etc/default/locale

重启

bash
reboot

查看

bash
locale

显示都是 UTF-8 就是正常的