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