Re: [xml] Charset trouble

On Mon, Oct 20, 2003 at 12:41:58AM +0400, Abylai Ospan wrote:

I have problem with charsets again ;-(
I'm add in c++
sub_subtree = xmlNewChild(subtree, NULL,(xmlChar*)

but following error ocure when mstring in KOI8-R charset:

  you MUST convert the string to UTF-8 before casting it to (xmlChar*)
and using it with the libxml2 API !
Have you read the documentation ?
Yes you MUST do it, there is NO workaround !!!


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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