ubuntu中文乱码解决
查看当前系统支持的字符集是否有中文
$ locale -a|grep zh_CN
拉取中文编码
$ locale-gen zh_CN.UTF-8
修改系统编码
cat >> /etc/profile << EOF
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
EOF
source /etc/profile
ubuntu中文乱码解决
查看当前系统支持的字符集是否有中文
$ locale -a|grep zh_CN
拉取中文编码
$ locale-gen zh_CN.UTF-8
修改系统编码
cat >> /etc/profile << EOF
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
EOF
source /etc/profile