gedit 中文乱码问题

在中文支持配置还不完整的Ubuntu12中,使用gedit打开带有中文字符的文件有时会出现乱码的情况。

原因:gedit对字符编码匹配不正确,

解决方法:

    在终端中输入如下命令,然后重新打开gedit即可:

    gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']" 

   gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"

猜你喜欢

转载自blog.csdn.net/yoyofu007/article/details/80235993