首先输入locale命令进行查看字符集编码locale会发现不是UTF-8,进行修改vi /etc/locale.conf改成LANG=LANG="zh_CN.UTF-8"再次输入locale进行查看locale