原文地址:http://www.2cto.com/os/201210/159321.html
-----------------------手动备份-----------------------------------
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系统中打开TXT文件出现乱码的方法。第一种方法通过gconf-editor编辑器来设置字符编码;第二种方法利用dconf-editor进行设置。推荐使用第二种方法。
1115

被折叠的 条评论
为什么被折叠?



