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

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

登陆后输入
export LC_ALL="zh_CN.GB2312"

然后再用VI看 中文就没问题了

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

原文地址:https://www.cnblogs.com/guanghuiqq/p/10617914.html