Accented characters

[email protected]
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
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.

Omar

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
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.