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: Water Lin
Subject: Re: The text coding sytem for Emacs
Date: Wed, 11 Nov 2009 10:36:21 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt)

Eli Zaretskii <address@hidden> writes:

>> From: Water Lin <address@hidden>
>> 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.
>
>

Yes, I am using Emacs 23.1. I fix this problem by adding
(prefer-coding-system 'utf-8)
to my .emacs file.

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: address@hidden


reply via email to

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