Wednesday, January 2, 2019

encoding - Emacs c-mode can't recognize utf-8?

I need to read one C++ head file which has some Chinese and was encoded using utf-8.


Emacs should recognize this encoding, but it turns out:


enter image description here


Then, I changed it to text-mode, it works:


enter image description here


I also tested for python-mode, lisp-mode, etc, all works except c-mode, c++-mode, java-mode, seems there are something wrong with cc-mode, or the cc-vars?


Please help me if you know how to fix this weird problem.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...