在终端输入:
sudo apt-get install dconf-tools --安装dconf-editor
按下Alt-F2,打开“运行应用程序”对话框,输入dconf-editor+回车,打开dconf-editor
在org--->gnome--->gedit--->preferences--->encodings--->auto-detected
在最前面添加'GB18030','GB2312','GBK',输入完后敲回车键才能保存输入的内容
结果为['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']