From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: xml encoding conflict with my defult emacs language configuartion Date: 23 Feb 2004 08:35:31 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077518207 31248 80.91.224.253 (23 Feb 2004 06:36:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2004 06:36:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 23 07:36:41 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Av9hp-0001sv-00 for ; Mon, 23 Feb 2004 07:36:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Av9ha-0004hD-Of for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Feb 2004 01:36:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Av9fz-00038i-FB for help-gnu-emacs@gnu.org; Mon, 23 Feb 2004 01:34:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1Av9fC-00023C-HA for help-gnu-emacs@gnu.org; Mon, 23 Feb 2004 01:34:30 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.30) id 1Av9fA-0001rh-Tg for help-gnu-emacs@gnu.org; Mon, 23 Feb 2004 01:33:57 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (steveneo@21cn.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17084 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17084 > Date: Mon, 23 Feb 2004 13:41:08 +0800 (CST) > From: "niDapeng" > > 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.