From: "niDapeng"<steveneo@21cn.com>
Subject: xml encoding conflict with my defult emacs language configuartion
Date: Mon, 23 Feb 2004 13:41:08 +0800 (CST) [thread overview]
Message-ID: <VA959776865891.14660@webmail2.inner-21cn.com> (raw)
I set my emacs environment as Chinese(GB2312), which is my common use.
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)
======================================================
I try to use "C-x RET-c UTF-8 C-x C-s" to save text, it prompt some message and also save some corrupt characters, and message as following:
=================================================
These default coding systems were tried to encode text
in the buffer `a.xml':
utf-8
However, each of them encountered these problematic characters:
utf-8: ÖÐ ÎÄ
The first problematic character is at point in the displayed buffer,
and C-u C-x = will give information about it.
Select one of the following safe coding systems, or edit the buffer:
gb2312 hz-gb-2312 iso-2022-7bit
Or specify any other coding system
at the risk of losing the problematic characters.
=================================================
I guess so: because my buffer text is GB2312 ( my input method only accept GB2312). Emacs can't convert GB2312 to UTF-8 automatically, it only enforce GB2312 to UTF-8.
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.
----------------------------------------------
ÍæÓÎÏ·Ó®ÊýÂëÏà»ú¡¢MP3¡¢UÅÌ
http://mail.21cn.com/huodong/0310/
ÖÐÃÀÈÕº«¸ßÖÐÉúÐÔµ÷²é:ÈÕÅ®ÉúÐÔ¹ÛÄî×·Å
http://news.21cn.com/huahua/
¹ã¶«ADSLÓû§ÓÐ×ÅÊý£¬21CNÉÌÎñÓÊÃâ·ÑÁì
http://mail.21cn.com/vip
Ï£À°Ç°×ÜÀíÓëÃÀÑÞ¿Õ½ãÄÖ³öÌÒÉ«ÐÔ³óÎÅ(ͼ)
http://news.21cn.com/social/
next reply other threads:[~2004-02-23 5:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-23 5:41 niDapeng [this message]
2004-02-23 6:35 ` xml encoding conflict with my defult emacs language configuartion Eli Zaretskii
-- 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=VA959776865891.14660@webmail2.inner-21cn.com \
--to=steveneo@21cn.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).