在ubuntu中gedit乱码解决是打开gconf-editor, 在/apps/gedit-2/preferences/encodings中给auto-detected键添加一个‘GB18030’,并将其排到列表顶部
在archlinux中得gconf-editor /apps下没有gedit,但dconf-editor有, 如果没有dconf-editor,就安装一个, 打开dconf-editor,
展开org/gnome/gedit/preferences/encodingsauto-detected的value中加入’GB18030′,加在uft8后面;
show-in-menu的value中加入’GB18030′。
===============================================================
vi中文:Vim在~/.vimrc中加入下面的代码 没有.vimrc文件可以新建一个let &termencoding=&encodingset
fileencodings=utf-8,gbk,ucs-bom,cp936