ubuntu中gedit中文乱码

解决方法:

在终端或按alt+f2中输入:gconf-editor,点apps->gedit-2->preferences->encodings,修改auto_detected的值,增加GB2312,gbk,同时把这两者的位置提前到utf-8下面一行.

注:用上述方法,只是保证在当前用户下是支持GB2312编码,若要设置为显示所有用户或root用户也支持的话,需要在终端里通过“sudo gconf-editor”来打开,设置方法同上。

在运行 gedit 时,加参数也可以正常显示中文。命令:suto gedit --encoding=GBK filename

猜你喜欢

转载自geeksun.iteye.com/blog/1038299