Re: [xml] Charset trouble
- From: Daniel Veillard <veillard redhat com>
- To: Abylai Ospan <aospan netup ru>
- Cc: Peter Jacobi <pj walter-graphtek com>, xml gnome org
- Subject: Re: [xml] Charset trouble
- Date: Sun, 19 Oct 2003 16:54:09 -0400
On Mon, Oct 20, 2003 at 12:41:58AM +0400, Abylai Ospan wrote:
Hello!
I have problem with charsets again ;-(
I'm add in c++
sub_subtree = xmlNewChild(subtree, NULL,(xmlChar*)
"param_value",(xmlChar*)mstring.c_str());
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 ?
http://xmlsoft.org/encoding.html
Yes you MUST do it, there is NO workaround !!!
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]