Two solutions for gedit in Chinese under Ubuntu system

Source: Internet
Author: User

Ubuntu gedit Chinese garbled looks very annoying, this article provides two kinds of solutions, Terminal command line or graphical interface to operate the way, in fact, the principle is to increase the type of coding, the problem shows the following figure, view the contents of the document, found garbled

Method One: Terminal approach

1, open the terminal

2, in the terminal input the following content, enter

Copy Content to Clipboard

Gconftool-2--set--type=list--list-type=string/apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT, GB18030,BIG5-HKSCS,UTF-16] "

Method Two: Graphical interface approach

1, hold down alt-f2 at the same time, open "Run Application" window

2, input "Gconf-editor", click "Run", enter Configuration Editor interface

3, click on the left "+" number to find/apps/gedit-2/preferences/encodings, and click

4, right key auto_detected, click "Edit key"

5, click "Add", enter "GB18030" in new list value, click OK

6, select the bottom of the list "GB18030", click on the right "up" until "GB18030" moved to the top of the list

7, click OK to close configuration Editor

8, view the contents of the document again, garbled disappeared

Note: command line commands do not enter an error.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.