ubuntu12.04 gedit 打开 txt 文件乱码

ubuntu12.04 gedit 打开 windows 分区中的 txt 文件乱码,是由于 ubuntu 和 windows 两个系统的编码不一样。
解决办法:
终端里依次输入如下2 条命令便可:
代码:
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']"
相关文章
相关标签/搜索