解决Linux下乱码 1,设置Xshell编码为utf8 2,修改~/.bash_profile,添加 export LANG=zh_CN.utf8 执行命令 $source ~/.bash_profile 解决~