---
title: "ubuntu中txt显示乱码的解决方法"
author: "lversam"
date: "2012-02-24T11:49:19Z"
tags: []
categories: ["开源软件"]
slug: "ubuntu-txt"
draft: false
lastmod: "2012-02-24T11:47:08Z"
id: 1420866
url: "https://lversam.iteye.com/blog/1420866"
---

1.Alt+F2或打开终端,输入:gconf-editor,点击运行或回车,进入配置编辑器界面;

2.依次打开:apps/gedit-2/preference/encodings**;**

3.双击右侧auto\_detected,进入编辑键对话框;

4.单击添加按钮,输入:GB18030,确定,可以看到列表中新增了GB18030列;

5.单击选中GB18030,点击"向上"将其置于列表顶部,确定.