=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Vendredi 6 Juin 2003 15:12, Thomas Jarosch a =E9crit :
> 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.
This is normal. The in-memory encoding format of libxml2 is _always_ UTF-8,=
in=20
which special character are encoded on several octets. You can use iconv to=
=20
translate them to iso-8859-1.
Cheers,
Christophe
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+4JSVB+sU3TyOQjARAm4gAJ0aSJ7yxgnO3Q+ZvQYlU+UErZ2VwwCaAiqS
b0NY1tz5vt+JXFqYcampaeI=3D
=3DprR+
=2D----END PGP SIGNATURE-----
|