Re: [xml] Country specific letters
- From: Daniel Veillard <veillard redhat com>
- To: Antoine Rennuit <antoine rennuit alemtid asso fr>
- Cc: xml gnome org
- Subject: Re: [xml] Country specific letters
- Date: Sat, 16 Mar 2002 03:46:25 -0500
On Sat, Mar 16, 2002 at 02:29:58AM +0100, Antoine Rennuit wrote:
===> node = xmlNewChild(node, NULL, (const unsigned char *)"DESCRIPTION",
(const xmlChar*)"a text with &, é, à... that is special letters");
[..]
Hello, I have this code (see above), which works quite well, until I put the
line with the arrow : it doesn't want to read the document when I want to
insert an element with special letters like &, é, à... I think it's a
problem of encoding, what is the code I must add, if I want to read quite
well what I wrote?
Please read the doc !
http://xmlsoft.org/encoding.html
You *must* convert your text to UTF8 before inserting it in the tree.
Use the isolat1ToUTF8() function to do this.
http://xmlsoft.org/html/libxml-encoding.html#ISOLAT1TOUTF8
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]