Hi, how to set xmlDocPtr encoding type?

I tried this:

*xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0");*
*doc->encoding = BAD_CAST "UTF-8";*

When I call: *"xmlFreeDoc(doc);"* Error occurs.


Thanks,
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
xslt@gnome.org
https://mail.gnome.org/mailman/listinfo/xslt

Reply via email to