Gedit problems in Ubuntu

Source: Internet
Author: User
Gedit is the default editor in Ubuntu, which is a bit similar to the Notepad program we often use and widely used. However, this little guy seems to be a bit reluctant to accept, especially when it comes to Chinese, there are various problems. The most common issue is Chinese Garbled text. To be accurate, the TXT file created by other systems may contain Garbled text. Of course, Ubuntu mentioned garbled, there are eight problems is the encoding method, linux by default is the use of UTF-8. The general solution is: GBK, GB23

Gedit is the default editor in Ubuntu, which is a bit similar to the Notepad program we often use and widely used. However, this little guy seems to be a bit reluctant to accept, especially when it comes to Chinese, there are various problems.

The most common issue is Chinese Garbled text. To be accurate, the TXT file created by other systems may contain Garbled text. Of course, Ubuntu mentioned garbled, there are eight problems is the encoding method, linux by default is the use of UTF-8.

The general solution is: GBK, GB2312, and other character encoding. Enter gconf-edit on the terminal to call up gconf-edit. In apps-> gedit-2-> preferences-> encodings, double-click auto-detected on the right to bring up a dialog box, add the GBK, GB2312, and GB18030 codes to it and set the codes to the top.

Now, open the TXT file. However, if you create an empty file in Ubuntu and double-click it to open it, you will find that gedit does not respond after flashing. When you use the command to open it, an error message is displayed. At this time, repeat the above operation, or put the UTF-8 to the top, this problem is solved, and open other TXT documents will not appear garbled.

Sometimes, you need to edit some key configuration documents of the system and the root permission is required. Sudo gedit ...... After such a command, the garbled characters that have been removed have appeared again. To solve this problem, you need to use sudo gconf-edit and add GB2312 and other encodings. Of course, you still do not need to pin it to the top.

These are some interesting questions about gedit.

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.