On Thu, Apr 19, 2007 at 03:05:04PM +0200, Trappel Martin wrote: > > -----Original Message----- > > From: Michael Rottmeier [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 19, 2007 1:53 PM > > To: [email protected] > > Subject: [xml] xmlSaveToFilename with UTF-8 encoding > > -- apply the stylesheet to the xml doc with xsltApplyStylesheetUser() > > > > -- and finally save the transformation result with xmlSaveFileEnc() [..] > > Any tips on how to make sure the file is saved as UTF-8?
the proper way is to indicate the encoding in the stylesheet and use the XSLt related serialization routines e.g. http://xmlsoft.org/XSLT/tutorial/libxslttutorial.html#saveresult I suggest to read this too http://www.w3.org/TR/xslt#output Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
