Garbled TXT files in Ubuntu

Source: Internet
Author: User
It is garbled to open the. txt file by double hitting with your gedit.


Solution: 1. Terminal input: gconf-Editor
Open in turn; apps-gedit2-preferences-encodings
Double-click "auto_detected" on the right. In the double-click pop-up dialog box, add gb18030, GBK, and gb2312 to the top, and move gb18030, gb2312 to the top. (The differences between gb2312, gb18030, and GBK, see PS-Info at the end of the article) ========================================================== =============================== 2,

In
Right-click the applications menu and choose edit menu. In the main menu dialog box, select System
Tools (System Tool)-configuration Editor, Which is enabled from the applications menu.

Turn on/apps/gedit-2/preferences/encodings/double-click auto_detected on the right, click Add in the pop-up dialog box, add values value to gb2312, OK, select, click the up button to move it to the first place.

Similarly, set show_in_menu and set gb2312 to the first place.


In the above method, you need to pin the GBK to use gedit to enable the GBK format document, but this will process the documents in other formats into garbled characters. A friendly method is that when opening the file, in the charater coding drop-down menu, select "add or remove... ", and then add GBK or gb18030.

PS-Info:

Gb2312 is the national standard for eight years
Gb18030 is the current National Standard
GBK is a foreign standard, covering various Asian languages

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.