all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: xml encoding conflict with my defult emacs language configuartion
Date: 23 Feb 2004 08:35:31 +0200	[thread overview]
Message-ID: <ullmutia4.fsf@elta.co.il> (raw)
In-Reply-To: <VA959776865891.14660@webmail2.inner-21cn.com> (steveneo@21cn.com)

> Date: Mon, 23 Feb 2004 13:41:08 +0800 (CST)
> From: "niDapeng"<steveneo@21cn.com>
> 
> 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
US-ASCII.

> 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 emacs-pretest-bug@gnu.org, 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 emacs-pretest-bug@gnu.org or emacs-devel@gnu.org.

> 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	other threads:[~2004-02-23  6:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-23  5:41 xml encoding conflict with my defult emacs language configuartion niDapeng
2004-02-23  6:35 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-02-24  6:16 niDapeng
2004-02-24  6:53 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ullmutia4.fsf@elta.co.il \
    --to=eliz@elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.