Ubuntu 11.04下Text Editor打开中文文本出现乱码的解决办法


主要是text editor(gedit-2) 在Ubuntu 11.04下没有识别中文的编码格式。需要做如下设置:

1、在terminal(终端)中输入 gconf-editor ,打开Configuration Editor程序。

2、找到apps-- gedit-2---preferences----encodings 中的auto_detected,单击它所对应的value值。

3、在弹出的对话框Edit Key中选择Add ,加入gbk和gb2312,并up到顶部。

然后再打开文本就可以显示中文了。设置如下图所示:

Ubuntu 11.04,Text Editor

相关内容