Linux中gedit打开包含中文内容文件乱码的问题

  1. 运行gconf-editor程序,如果没有可以使用“sudo apt-get install gconf-editor”来安装
  2. 安装后打开并进入/apps/gedit-2/preferences/encodings项
  3. 编辑auto_detected属性,在“Add New List Entry”中输入“GB18030”,添加后将此编码移动到列表最上方,然后重新打开文件

你可能感兴趣的:(linux)