Re: [xml] problem with xmlNewText and encodings



On Fri, Jan 13, 2006 at 09:19:55PM +0100, Christian Parpart wrote:
However, the text I pass to xmlNewText/xmlNewTextChild is iso-8859-15, so, how 
do I tell it to properly handle encodings here?

  You can't do that you're violating the API ! You must pass UTF8 strings
for xmlChar * parameters ! See http://xmlsoft.org/encoding.html

Daniel

-- 
Daniel Veillard      | Red Hat http://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]