[Expat-discuss] Iso encoded data

Massimiliano Ciaramita c1pp1n0@yahoo.com
Fri, 6 Sep 2002 14:06:39 -0700 (PDT)


Hello,

 I am trying to get at the data between tags that is
encoded as iso-8859-1. I am using the
XML_SetCharacterDataHandler but that data is not in
the array of characters retrieved. For example, from
the input 

<tag>We keep wondering &mdash; what Mr. Gates wanted 
to say</tag>

I get the cdata:

We keep wondering what Mr. Gates wanted  to say

with no dash anywhere.
I am initializing the parser with the encoding info:

XML_Parser parser = XML_ParserCreate("iso-8859-1");

How do you get the encoded data?
Many thanks!


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com