Re: [xml] html push parser and libiconv
- From: Daniel Veillard <veillard redhat com>
- To: Chris Anderson <christop charm net>
- Cc: xml gnome org
- Subject: Re: [xml] html push parser and libiconv
- Date: Fri, 26 Sep 2003 04:40:50 -0400
On Fri, Sep 26, 2003 at 03:38:03AM -0400, Chris Anderson wrote:
I'm currently using an alternate entry point for
htmlCreatePushParserCtxt() that takes a string encoding name instead of
an xmlCharEncoding enumerator. This is useful when a weird document
character encoding is returned in the HTTP headers that libiconv knows
about. I attached my patch files in case there is interest in adding an
API entry point for this. Patching libxml2-2.5.11 works ok.
Okay, but I expect to provide the same kind of htmlRead... APIs
as provided for the XML parser for the HTML parser and those include
encoding as a const char * . As discussed a few weeks ago on the list
I'm trying to get rid as much as possible of the xmlCharEncoding type
which is too limited and for no good reason.
The patch might help those stuck with 2.5.11, thanks but from 2.6.0
I expect a better alternative API.
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/
] [Thread Prev