ubuntu下打开txt文件乱码的解决



ubuntu下打开txt文件乱码的解决
 
方法一:
 
终端输入gconf-editor调出gconf-edit
  www.2cto.com  
(如若没安装请用 sudo apt-get install gconf-editor 命令安装)
 
PS:输入gconf-editor即可,前面不需要加Sudo
 
依次点开
 
apps->gedit-2->preferences->encodings 中的auto-detected
 
在双击弹出对话框中加入GB18030,GBK,GB2312,然后将GB18030,GB2312移到最上
 
方法二:  www.2cto.com  
 
终端输入 sudo apt-get install dconf-tools 安装,然后输入sudo dconf-editor调出dconf-editor
 
依次点开
 
org->gnome->gedit->prefrences->encoding中的auto-detected的value改为:['GB18030', 'GB2312', 'GBK', 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16'],直接回车保存就好!!
 
 个人倾向于使用第二种方法!因为新安装的ubuntu的gconf-editor里面没有auto-detected,新手一般不会设置!
 

相关内容

    暂无相关文章