ubuntu12.04 gedit 打開 txt 文件亂碼

ubuntu12.04 gedit 打開 windows 分區中的 txt 文件亂碼,是由於 ubuntu 和 windows 兩個系統的編碼不一樣。
解決辦法:
終端裏依次輸入如下2 條命令便可:
代碼:
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"


代碼:
gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', 'UTF-16']"
相關文章
相關標籤/搜索