中文设置:export LANG=zh_CN.GB2312英文设置:export LANG=zh_CN.UTF-8
export LANG=zh_CN.GB18030export LANG=zh_CN
可以执行:LANG="zh_CN.GB18030"字符集乱码马上解决
vi .bash_profile