終端中執行 sudo apt-get install dconf-toolsubuntu
而後輸入dconf-editoride
找到org—>gnome—>gedit—>preferences—>encodings—>auto-detectedget
在最前面添加 ‘GB18030′,’GB2312′,’GBK’,輸入完後敲回車鍵才能保存輸入的內容。it
個人文件修改後是:['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']。而後ubuntu11.10就能順利的顯示txt中文不再會出現中文亂碼咯。class