[Top][All Lists]

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

Re: xml encoding conflict with my defult emacs language configuartion

From: Eli Zaretskii
Subject: Re: xml encoding conflict with my defult emacs language configuartion
Date: 23 Feb 2004 08:35:31 +0200

> Date: Mon, 23 Feb 2004 13:41:08 +0800 (CST)
> From: "niDapeng"<address@hidden>
> I set my emacs environment as Chinese(GB2312), which is my common use. 

Please make sure you also set up your mailer to generate correct
Charset headers.  Your message said:

> Content-Type: text/plain
> MIME-Version: 1.0

which is blatantly wrong, as I think it was encoded in gb2312, not in

> When I edit XML by UTF-8, I input some Chinese words( GB2312 encoding). When 
> I try to save, emacs prompt there is conflict between them.Message as 
> following:
> ======================================================
> Selected encoding chinese-iso-8bit-dos disagrees with utf-8 specified by file 
> contents.  Really save (else edit coding cookies and try again)? (yes or no) 
> ======================================================

What version of Emacs is that?  (If it's the CVS version, please send
such reports to address@hidden, not here.)

I think this happens because your Emacs doesn't support Chinese
characters in the Unicode charsets.  I don't remember the details,
but Emacs in CVS might have a way to convert gb2312 to Unicode; I
suggest asking on address@hidden or address@hidden

> Is there a easy way to approach my reqired? I need: firstly, it can save 
> GB2312 to UTF-8 correctly, secondly, it's better there aren't so many message 
> to let me confirm, "silent save" is better.

Emacs doesn't keep silent when there's a real danger of corrupting
your files.  I think this is a correct policy when there's no way for
Emacs to silently do the right thing.

reply via email to

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