[xml] newbie question about encoding

Date view Thread view Subject view Author view

From: Ext.ZXSPRCR2A015@tls.mms.fr
Date: Mon Oct 23 2000 - 04:53:44 EDT


  I try to create an XML document from scratch,
with ISO-8859-1 character (french accents).

doc = xmlNewDoc((xmlChar*)"1.0");
doc->charset = XML_CHAR_ENCODING_UTF8;
doc->encoding = xmlStrDup((xmlChar*)"ISO-8859-1");

  When I add a node, I use :

node = xmlNewDocText(node, xmlEncodeEntitiesReentrant(doc,
                                         (xmlChar*)"Iréné"));

  Everything OK to create doc, but I can't find a way to
dump document (always "output conversion failed" message).
  How to change conversion function to ISO Lantin 1 ?

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 05:43:26 EDT