- 检查远程连接工具是否为utf-8
xshell如图所示
2. 检查linux中字符集
[root@localhost log]# echo $LANG
en_US.UTF-8
修改
vim /etc/profile #添加该环境变量
export LANG=zh_EN.UTF-8
export LC_ALL="zh_CN.UTF-8"
- 修改查看vim编码
[root@vpn-wiki scripts]# cat ~/.vimrc
set fileencodings=utf-8,gbk,gb2312,gb18030
set fileencoding=utf8
set encoding=utf8
总结:三板斧下去 没解决请私聊
参考:https://www.cnblogs.com/halberd-lee/p/11328284.html