现在的位置: 首页 > 综合 > 正文

ubuntu12.04 gedit 打开 txt 文件乱码

2017年10月21日 ⁄ 综合 ⁄ 共 341字 ⁄ 字号 评论关闭

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']"

enjoy it !

抱歉!评论已关闭.