转自 http://blog.csdn.net/darennet/article/details/40679983
ubuntu下gedit默认编码设置,以解决gedit中文乱码问题
在终端下输入:gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"
然后继续输入:gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['UTF-8', 'GB18030', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"
这是在终端下设置的,同图形化界面,则安装 dconf-editor
sudo apt-get install dconf-tools
终端中输入命令:$ dconf-editor
依次点开->org->gnome->gedit->preferences->encodings