When I change the coding to UTF-8 by M-x
revert-buffer-with-coding-system, the text file works normally.
How can I let Emacs to treat text file as UTF-8 by default?
Thanks
Water Lin
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: Wate...@ymail.com
What version of Emacs is that? With Emacs 23.1 I think this shouldn't
happen (barring some rare bug). If you don't have Emacs 23.1, can you
upgrade?
> How can I let Emacs to treat text file as UTF-8 by default?
For this file only, or for all files?
For the latter `(prefer-coding-system 'utf-8)' in your .emacs should
do, I think. For the former, you can add a `coding:' cookie to the
file.
Yes, I am using Emacs 23.1. I fix this problem by adding
(prefer-coding-system 'utf-8)
to my .emacs file.