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



> > 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.

Thanks for the two quick responses!

Either I'm going to use iconv or I now have a good reason
to switch my code to UTF-8 anyway.

Thomas





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