[Expat-discuss] Encoding issues in expat

Subramanian, Binu binu.subramanian@barconet.com
Fri Jul 26 04:06:03 2002


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

---------------------- multipart/mixed attachment
I am working on Win 2000, VC++ 6.0
I am using expat 1.95.4 version.
It is compiled for UTF-8 output and i have specifed the encoding in the =
XML
file as UTF-8.
Still when i load the XML file, a character =C2 is prefixed to the =
special
characters like ( Euro, trademark, etc).

What can i do to see that the Euro character properly? I have enclosed =
the
XML file i am using.
Any suggestion/help will be useful.

kr,
Binu


-----Original Message-----
From: Karl Waclawek [mailto:karl@waclawek.net]
Sent: 24 July 2002 18:41
To: Subramanian, Binu; expat-discuss@lists.sourceforge.net
Subject: Re: [Expat-discuss] Encoding issues in expat


> I am writing an XML file and using entities for special characters =
like
the
> Euro and the trademark characters.
> My XML file uses the UTF-8 encoding.
>=20
> This XML file is viewed correctly in IE 6.0 and when parsed by libxml =
and
> the Xerces XML parsers, the character conversion is correct.
> ie The Euro sign replaced with the numerical entity € in the =
XML
file
> is correctly translated back to Euro by the libxml and the Xerces XML
> parsers.
>=20
> What should i do to get the expat parser to translate the numerical =
entity
> € back to the Euro character.

It works fine for me.
What document are you using?
What version of Expat are you using?
How is it compiled, for UTF-8 or UTF-16 output?

Karl



---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: expat_euro_EN.dtd
Type: application/octet-stream
Size: 23929 bytes
Desc: not available
Url : http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20020726/24faebe2/expat_euro_EN.exe

---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: expat_euro.xml
Type: application/octet-stream
Size: 1215 bytes
Desc: not available
Url : http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20020726/24faebe2/expat_euro.exe

---------------------- multipart/mixed attachment--