11
1
2011
0

Ubuntu中gedit打开文本文件显示乱码的问题解决及其他

    Ubuntu中gedit打开文本文件显示乱码的问题解决及其他
    1    终端输入gconf-editor调出gconf-edit
    2    依次点开
    3    apps->gedit-2->preferences->encodings 中的auto-detected
    4    在双击弹出对话框中加入GB18030,GBK,GB2312,然后将GB18030,GB2312移到最上
    这样就可以解决gedit中文本文件显示汉字时乱码.
    通过以上的步骤,CrazyCow意识到gconf-editor不是一般的东西.有点Windows中regedit的意思.那么gconf就应该差不多是注册表信息库之类的东西.CrazyCow还仔细看了其他项目,发现gconf还可以系统的默认浏览器拉、改变桌面图标拉等等系统的默认设置,还有各种程序(apps)的默认设置。CrazyCow上网gconf-editor 的设置被保存在/home/username/.gconf 内。而自己设置的强制值则被保存在 /etc/gonf/ 内的/etc/gconf/gconf.xml.defaults/ 和 /etc/gconf/gconf.xml.mandatory/。

-----2011年11月19日------

今天装了Ubuntu11.10,又出现了乱码问题。

百度,又得下面一法:

 

gedit 编辑器打开windows之前文本出现乱码,

终端输入命令:
$ gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"
$ gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"

Category: Linux Study | Tags: | Read Count: 2122

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com