Re: Accented characters

"Mark" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
Hi Omar,

AFAIK Expat will always return character data in UTF-8 encoding no matter the character set of the original document.  Look at iconv() to convert back to ISO-8859-1.


---- Original Message ----
Hi everybody.
I have a problem with accented characters: I obtain "realtÃ" when parsing the
content "realtá", for example.
I also noted that if I try to parse a content like this: "Showroom Devon &amp;
Devon", I obtain as output "Devonoom Devon" (the text after &amp; overrides the
previous one).
I use Expat 2.0.1 on a Gentoo distro, but it gives me the same errors on an
embedded ARM system too.
I create the parser and then set the encoding this way:

p = XML_ParserCreate(NULL);
XML_SetEncoding(p, (const XML_Char)"iso-8859-1");

Has anyone a solution? Thanks in advance.

_______________________________________________
Expat-discuss mailing list
[email protected]
http://mail.libexpat.org/mailman/listinfo/expat-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.