Re: [xml] Character encodng cleanup



On Sun, Jul 20, 2003 at 03:19:13AM +0200, Peter Jacobi wrote:
Hi Daniel,

I've found (unfortunately) another use of the deemed-to-be-obsolete
charset field:

In parserInternals.c, HTMLparser.c and DOCBparser.c, when an
invalid UTF-8 encoding is detected, ctxt->charset is set to
XML_CHAR_ENCODING_8859_1.

Given that this would indicate 8859-1 encoding of the in-memory
strings (as leading researchers tend to believe), this doesn't seem
to be that useful.

Do you have any test case where this does anything good?

  I can't think of any, but I don't see why leaving it there would be
a problem either.
  I think there is another use in the XInclude module.

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]