all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Knackeback <knackeback@randspringer.de>
Subject: chinese encoded in UTF-8 and XML
Date: 25 Sep 2003 22:05:24 +0200	[thread overview]
Message-ID: <m34qz03a7v.fsf@redrat.quark.de> (raw)

Hi, I wrote a XML file with GNU emacs 21.2.2 and with 
chinese character content encoded in UTF-8.
I wrote something like:

<?xml version="1.0" encoding="UTF-8"?>
<test>
<chinese>撒</chinese>
<chinese>鰓</chinese>
</test>

and then I used "C-x RET f" and then I choosed utf-8.
Then I typed "C-x C-s" to save my file.
I hope this is the right way in emacs to store the content
as UTF-8 encoded text ?!
Now I tried to parse the file with xmllint. xmllint is a
small xml-parser program which comes with libxml2. 
The parser complains that the second "chinese line" is not proper
UTF-8.

==>

uhu:4: error: Input is not proper UTF-8, indicate encoding !
<chinese>鰓</chinese>
         ^
uhu:4: error: Bytes: 0xC4 0xCE 0x3C 0x2F
<chinese>鰓</chinese>

It is interesting that the parser only grumbles about the second 
chinese line.

I'm anxious to see an explanation !

             reply	other threads:[~2003-09-25 20:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-25 20:05 Knackeback [this message]
2003-09-25 20:32 ` chinese encoded in UTF-8 and XML Andreas Prilop
2003-09-26  2:52 ` Micah Cowan
2003-09-26  4:58   ` Miles Bader
2003-09-26 14:12     ` James H.Cloos Jr.
     [not found]   ` <mailman.736.1064552317.21628.help-gnu-emacs@gnu.org>
2003-09-26  6:39     ` Gernot Hassenpflug
2003-09-26 16:16   ` Stefan Monnier

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=m34qz03a7v.fsf@redrat.quark.de \
    --to=knackeback@randspringer.de \
    /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.