vim
在/etc/vim/vimrc或者~/.vimrc中添加:
set fencs=utf-8,GB18030,ucs-bom,default,latin1
gedit(3.x) ,适用于ubuntu11.10及以后
在终端输入命令:
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','CURRENT','GB18030','ISO-8859-15','UTF-16']"
gedit(2.x),适用与ubuntu11.04及以前
在终端输入命令:
gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT,GB18030,ISO-8859-15,UTF-16]"