ubuntu打开 txt 文件乱码

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

 

posted @ 2013-06-19 22:29  vincent_hv  阅读(364)  评论(0编辑  收藏  举报