ubuntu的texteditor不能显示中文

一安装完ubuntu系统,如果你安装的是英文的话,是text editor不能正确的显示中文,会显示为乱码。

怎么解决这个问题呢?

1。 安装中文语言包

Applications->System Tools->System settings.

然后 supported language, 添加simplefied Chinese

2。你先安装gconf-editor
sudo apt-get install gconf-editor

3。 过后再输入
gsettingsset org.gnome.gedit.preferences.encodings auto-detected”[‘UTF-8′,’GB18030′,’GB2312′,’GBK’,’BIG5′,’CURRENT’,’UTF-16′]”

之后再次打开text editor就看到中文可以正常显示了。

有人说安装完gconf-editor后,在终端输入  gconf-editor,

然后在弹出的窗口的左边找到:

/apps/gedit-2/preferences/encodings

但是实际上没有encodings这个子项的,你也无法创建。

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

One Reply to “ubuntu的texteditor不能显示中文”

留言

你的邮箱是保密的 必填的信息用*表示