Re: [xml] Register character encoding handler
- From: Daniel Veillard <veillard redhat com>
- To: "Henke, Markus" <Markus_Henke ordat com>
- Cc: "'xml gnome org'" <xml gnome org>
- Subject: Re: [xml] Register character encoding handler
- Date: Wed, 6 Feb 2002 10:04:19 -0500
On Wed, Feb 06, 2002 at 03:47:26PM +0100, Henke, Markus wrote:
Hello,
since i've to support HP-ROMAN8 (-9) character encoding (and can't
ensure libiconv on every supported platform) i've written my own
'xmlCharEncodingInputFunc' and 'xmlCharEncodingOutputFunc'.
The documentation says that i've to register them using
'xmlNewCharEncodingHandler()', but that function is
*static* in 'encoding.c' and isn't declared in 'encoding.h'.
Just by mistake (and nobody has needed it by now) or have
i got something wrong?
(A fix would be trivial, but strictly seen an API change, so i
don't post it here...)
Just allocate an xmlCharEncodingHandler structure, fill it
up with "HP-ROMAN8", the input and output functions, and register
it with xmlRegisterCharEncodingHandler() giving the address of
the block.
I don't know why I made xmlNewCharEncodingHandler() static,
but there is still an API to register those.
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]