Garbled error in Ubuntu 12.04 LTS Chinese txt file

Source: Internet
Author: User


The Ubuntu 12.04 LTS Chinese txt file displays garbled characters. In Ubuntu 12.04 LTS, the default text editor is GEDIT. The Ubuntu text editor in the English version does not recognize the character encoding method in the file, and Chinese characters are usually garbled. By searching for a solution on the Internet and experimenting with it yourself, we found that the following methods are effective: Ctrl + Alt + t open the command terminal, and www.2cto.com enter the following command on the terminal: gsettings set org. gnome. gedit. preferences. encodings auto-detected
"['Gb18030', 'gb2312', 'gbk', 'utf-8', 'big5', 'current', 'utf-16']" gsettings set org. gnome. gedit. preferences. encodings shown-in-menu
"['Gb18030', 'gb2312', 'gbk', 'utf-8', 'big5', 'stream ', 'utf-16'] "when you open the TXT file again, Chinese characters are displayed normally. Author lqhbupt

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.