http://wiki.ubuntu.org.cn/Gedit%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']"
[编辑]图形方式
- 运行dconf-editor
- 展开/org/gnome/gedit/preferences/encodings
- auto-detected的Value中加入 'GB18030' ,加在UTF-8前面;
[编辑]Gedit 2.x 版本设置 (适用于Ubuntu 11.04及以前)
[编辑]命令方式
gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[GB18030,UTF-8,CURRENT,ISO-8859-15,UTF-16]"
[编辑]图形方式
- 运行gconf-editor
- 展开/apps/gedit-2/preferences/encodings
- 在auto_detected键中新增GB18030,并使它位于UTF-8前面,确定。