Use Emacs in Ubuntu to view Windows Chinese garbled files

Source: Internet
Author: User
The encoding character is not caused by UTF-8. So many software systems do not rely on general standards, so we have to use the so-called Chinese encoding. Almost all of the stuff downloaded by the shooter network is faulty. When you use Emacs in Ubuntu, You can see garbled characters ~ /. Emacs. d/init. el file: (set-language-environment "Chinese-GB") Restart Emacs and open the file.

The encoding character is not caused by UTF-8. So many software systems do not rely on general standards, so we have to use the so-called Chinese encoding. Almost all of the stuff downloaded by the shooter network is faulty.

When you use Emacs in Ubuntu, You can see garbled characters ~ Add a row of settings in the/. emacs. d/init. el file:

(Set-language-environment "Chinese-GB ")

Restart Emacs and open the file. The Chinese characters are displayed correctly.

If you just want to use it temporarily, run the following command:

M-x

Set-language-environment

Enter Chinese-GB and refresh the buffer.

Recommended reading:

Configure the newLISP Development Environment http://www.linuxidc.com/Linux/2013-01/78463.htm for Emacs

Teach you how to configure http://www.linuxidc.com/Linux/2012-10/72342.htm for Emacs theme

How to customize Emacs http://www.linuxidc.com/Linux/2012-10/72341.htm

In the GNU Emacs environment, how does one compile and run C/C ++ programs? Http://www.linuxidc.com/Linux/2012-08/68299.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.