1.查看当前系统字符集
cat /etc/locale.conf英文应该是:LANG=en_US.utf8
2.切换之前先备份配置文件
cp /etc/locale.conf /etc/locale.conf_bak3.切换字符集
echo "LANG=zh_CN.utf8" > /etc/locale.conf4.在查看一下
cat /etc/locale.conf现在应该是:LANG=zh_CN.utf8
5.重启
reboot
6.切换回来
echo "LANG=en_US.utf8" > /etc/locale.conf