[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] xmlSaveToFilename with UTF-8 encoding
- From: Daniel Veillard <veillard redhat com>
- To: Trappel Martin <martin trappel ksengineers at>
- Cc: xml gnome org
- Subject: Re: [xml] xmlSaveToFilename with UTF-8 encoding
- Date: Thu, 19 Apr 2007 09:19:04 -0400
On Thu, Apr 19, 2007 at 03:05:04PM +0200, Trappel Martin wrote:
> > -----Original Message-----
> > From: Michael Rottmeier [mailto:michael rottmeier web de]
> > Sent: Thursday, April 19, 2007 1:53 PM
> > To: xml gnome org
> > 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/
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]