echo $LANG
显示编码 : en_US.UTF-8 英文urf8有时显示程序输出是?
解决方法:
vim ~/.bashrc
最后一行追加:
export LANG=zh_CN.UTF-8
然后使用户配置生效
source ~/.bashrc