How to solve the problem of gedit Chinese characters in Linux (Ubuntu/centos)

Source: Internet
Author: User

Http://jingyan.baidu.com/article/1709ad80a443c54634c4f09c.html

  1. Press the keyboard alt and F2, you can open the "Run Program" dialog, which is similar to the Windows system "Start---> Run", as long as we enter the program name inside, we can start the corresponding program

  2. In the input box below enter: Gconf-editor, then click on the bottom right of "run", you can run Gconf-editor this program. The exact operation is as follows:

  3. Gconf-editor program after running as shown, in fact, it is an editor configuration program, we have to do is to make some settings in this.

  4. Double-click "Apps" in the list on the left to open the apps list as shown in:

  5. Below the list we find "Gedit-2" double-click and open, then double-click "Preferences" in the opening, and finally select "encodings" as shown:

  6. We double-click on the "Auto_detected" item on the list on the right, open the "Edit key" Setting interface, then click "Add" button to add a new encoding and decoding method, as shown in:

  7. In the "Add New List Entry" box that pops up, enter: GB18030, then click OK.

  8. So the GB18030 we add will appear at the bottom of the values list, and what we're going to do now is move it to the top, select GB18030, and then click the "Up" button until the GB18030 moves to the top.

  9. GB18030 codec move to the top, we click on the right bottom of the OK button to close the Configuration Editor settings interface, so far, we have been set to open the Chinese file will not garbled, next we open our previous garbled file to verify.

  10. We go back to where we saved the file, open the file, then the file can be displayed normally, no garbled, as shown in:

    END

How to solve the problem of gedit Chinese characters in Linux (Ubuntu/centos)

Related Article

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.