Gedit 解决中文显示乱码问题

时间:2023-03-08 23:58:18
Gedit 解决中文显示乱码问题

详细请参考:http://wiki.ubuntu.org.cn/Gedit%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81

具体原因是Gedit的默认编码设置没有添加中文编码所以可以

通过gcof-editor(通过命令:sudo apt-get install gcof-editor 安装)在图形界面添加GB18030、GB2312、GBK、BIG5等简繁编码

通过命令

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

添加。

这样就可以解决乱码问题了。