日期:2014-05-16  浏览次数:20789 次

linux下查看文件编码
在当前目录下有一个code.txt文件。
vi code.txt打开;
:set fileencoding;

显示的是  fileencoding=     ;

这里为什么是等于什么也没有呢?求解释!
------解决方案--------------------
你把它设置为空了吧
------解决方案--------------------
http://ungerhu.com/jxh/vi.html#s19
http://hi.baidu.com/kouzl/blog/item/4b0ad3c605e0ba129d163d9b.html

:set all                
------解决方案--------------------
 Show all options and their values.


------解决方案--------------------

------解决方案--------------------
try: file code.txt

或者在windows下用editplus打开,选择“另存为”,看看编码格式是什么!