Using the Ubuntu text editor gedit to open Chinese with garbled solution

Source: Internet
Author: User
Keywords Gedit appearing garbled coded
Tags aliyun button click coded configuration editor default dialog box editor

By default, open gb18030/gbk/gb2312 with http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu text editor (gedit) When encoding text files of the same type, there will be garbled characters.

The reason for this is that Gedit uses an encoded matching list, only the encodings in this list will match, and the encoding not in this list will appear garbled. All you have to do is add GB18030 to this matching list.

command line for all Ubuntu users.

Copy the following command to the terminal, and then enter:

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

Graphical, suitable for Ubuntu users, not for Kubuntu/xubuntu users.

You can follow these steps to make your gedit correctly display Chinese encoded files.

1, press ALT-F2, open the Run Application dialog box.
2. Type "Gconf-editor" in the text box and press ENTER to open the configuration Editor.
3, expand the Left tree node, locate the/apps/gedit-2/preferences/encodings node and click it.
4, double click on the right auto_detected key, open the Edit Key dialog box.
5, click the "Add" button to the right of the list, enter "GB18030", click OK button.
6, the bottom of the list of new added a "GB18030." Click to select it, and click the Up button to the right until GB18030 is at the top of the list.
7, click OK button to close the configuration editor.

Your gedit should now be able to successfully open GB18030 encoded text files.

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.