When gedit displays files with Chinese characters, garbled characters are displayed. You need to set it to support gb18030 encoding.

Source: Internet
Author: User

By default, when gedit displays files with Chinese characters, garbled characters are displayed. You need to set it to support gb18030 encoding.

Press Alt + F2 to run gconf-editor. In the configuration Editor, open:
Apps-> gedit-2-> preferences-> encodings
Double-click auto-detected on the right, click "add", fill in the new list value "gb18030", and click "save". After adding "gb18030", click the bottom line, move it to the top row, save and exit.
PS: if you do not have the permission to change the above configuration, you can add parameters to display Chinese characters when running gedit. Command: gedit-encoding = GBK filename.

Note: The above method only ensures that the current user supports gb18030 encoding. If you want to set it to show all users or root users, you need to use "sudo gconf-Editor" on the terminal. The setting method is the same as above.

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.