Re: [xml] SAX/used encoding in callbacks



On Fri, May 17, 2002 at 02:47:14PM +0200, Thomas Porschberg wrote:

My application works internal not with multibyte code.
Now it has to read a UTF-8 encoded XML-file via SAX and
I ask if it is possible to use another encoding than the
encoding from the XML-file in the callbacks.

Is there a way to switch the encoding in the callbacks to 
ISO-8859-1 ?

  no, the parser operates only on a preconverted UTF8 stream

If not, is there a simple way to translate the UTF-8 in
ISO-8859-1 inside the callbacks?

  there is an conversion function for UTF8 to Iso Latin 1
check encoding.h for the name and signature,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.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]