Re: [libxml++] iso-8859-1 encoded characters
- From: Christophe de VIENNE <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [libxml++] iso-8859-1 encoded characters
- Date: Fri, 6 Jun 2003 15:18:13 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Vendredi 6 Juin 2003 15:12, Thomas Jarosch a écrit :
> 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
which special character are encoded on several octets. You can use iconv to
translate them to iso-8859-1.
Cheers,
Christophe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+4JSVB+sU3TyOQjARAm4gAJ0aSJ7yxgnO3Q+ZvQYlU+UErZ2VwwCaAiqS
b0NY1tz5vt+JXFqYcampaeI=
=prR+
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]