1. 程式人生 > >Ubuntu16 gedit 中文亂碼

Ubuntu16 gedit 中文亂碼

官方:

gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']"

系統返回: No such key 'auto-detected'

命令dconf-editor,檢視已經沒有auto-detected鍵,改用candidate-encodings鍵,所以命令改為

gsettings set org.gnome.gedit.preferences.encodings candidate-encodings "['GB18030', 'UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']"

done!