Linux下用vi 打开文件出现乱码


环境

RedHat Linux 9 + VWWare 8.0 + SSH 3.2.9 + Putty 0.62 + MySQL 3.2

         

 

问题

 Linux下用vi 打开文件出现乱码

 

解决

强烈推荐参考此文:Putty远程连接Linux服务器出现乱码解决

 

执行LANG=zh_CN.utf-8修改当前环境语言常量。

 

参考资料

VIM 文件编码识别与乱码处理

http://edyfox.codecarver.org/html/vim_fileencodings_detection.html

 

linuxvi显示中文乱码的问题 

http://blog.163.com/little_320/blog/static/38789520091116103325859/



猜你喜欢

转载自blog.csdn.net/konglongaa/article/details/80482568