|
|
在debian.user.chinese.gb2312上看到一篇关于Gedit自动编码检测的,
原来可以用gconf来进行调整。共享出来:
- $ gconftool-2 --get /apps/gedit-2/preferences/encodings/auto_detected
复制代码
查看一下显示结果如下: [UTF-8,CURRENT,ISO-8859-15,UTF-16]
由于我的locale一直设置成en_US.UTF-8,所以打开GB2312编码的文件总是会乱码.
利用gconftool-2设置自动检测的编码列表
- $gconftool-2 --set /apps/gedit-2/preferences/encodings/auto_detected [UTF-8,CURRENT,GB18030,BIG5,ISO-8859-15,UTF-16] --type list --list-type string
复制代码
再打开windows分区下的文件,会发现已经可以正常显示了。 |
|