less,more,view一个文件时中文能够正常显示,但是VI却显示乱码呢?

https://blog.csdn.net/konglongaa/article/details/80590470bash

 

登录后输入
export LC_ALL="zh_CN.GB2312"spa

 

而后再用VI看 中文就没问题了.net

把他加到home目录的.bashrc 或 .bash_profile 或 .profileblog

相关文章
相关标签/搜索