之前在网上看了很多解决方法,但试了一遍都不好用。还是乱码。
最后看到有个人的方法,试了可以:
在命令终端里分别输入:
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']”