[libxml++] iso-8859-1 encoded characters



Hi!

I'm experiencing a very strange behavior when I try to use special iso-8859-1
characters like the German umlauts. The problem is easily reproducebale
with the dom_parser example program of libxml++.
Attached is a small testcase to show the problem.

When I use the write_to_string() function, everything is normal.
The dom_read_write program shows no sign of a problem, too.
But when you get the content of a node, the umlauts are broken
and show up as two garbage characters.
(look at the output of dom_parser example)

Any help is appreciated.

I'm using libxml++-0.23.0 and libxml2-2.5.7.

cheers,
Thomas
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
iso8859 test
-->

<!ELEMENT iso8859 (contact) >

<!ELEMENT contact (company, zip, city)>
<!ELEMENT company (#PCDATA)>
<!ELEMENT zip (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE iso8859 PUBLIC "" "iso8859.dtd">
<iso8859>
  <contact>
    <company>Intra2net AG</company>
    <zip>72072</zip>
    <city>Tübingen</city>
  </contact>
</iso8859>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]