linux 解决gedit中文显示乱码

来源:互联网 发布:江歌事件 知乎 编辑:程序博客网 时间:2024/05/21 10:43

Gedit中文乱码解决方法:


查看自己安装的Gedit版本

gedit --version

根据对应版本执行对应命令

Gedit 3.x 版本

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

Gedit 2.x 版本

gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[GB18030,UTF-8,CURRENT,ISO-8859-15,UTF-16]"


0 0
原创粉丝点击