help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The text coding sytem for Emacs


From: Eli Zaretskii
Subject: Re: The text coding sytem for Emacs
Date: Fri, 06 Nov 2009 10:19:48 +0200

> From: Water Lin <WaterLin@ymail.invalid>
> Date: Thu, 05 Nov 2009 19:30:27 +0800
> 
> 
> I re-install my Windows XP system. But after I start Emacs, it treats my
> text file as iso-latin-1-unix. But actually the coding system should be
> utf-8. So Emacs shows the text as a mess.

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]