Re: Bundling libxml2 and expat compatibility layer

From: Date: Sun, 04 May 2003 15:21:19 +0000
Subject: Re: Bundling libxml2 and expat compatibility layer
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-1216@lists.php.net to get a copy of this message
On Sun, 2003-05-04 at 08:36, Adam Dickmeiss wrote: > On Sat, May 03, 2003 at 12:11:14PM -0400, Sterling Hughes wrote: > > Hi, > > > [snip] > > > 3) Proper unicode support > What is it that Expat misses? > Exactly what you said. :) It doesn't handle these encodings natively, libxml2 does. Libxml2 can detect proper XML encodings, character sets, and use the appropriate functions. It also natively detects and uses iconv() to do encoding transformations. Its not that expat can't be made to properly support unicode, but it can't be said that it does. -Sterling > Expat itself MAY recognice the encoding in the header. However, the C > code in PHP forces Expat to use some other fixed encoding by providing > a NON-NULL pointer for XML_ParserCreate. > > Furthermore Expat allows you to plugin conversion handlers that > allows for a substantial subset of characer sets out there. It is > possible to use iconv for that purpose. (Expat call > XML_SetUnknownEncodingHandler). > > Expat does not do much, but it does its job well and fast. -- "The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea." - Unknown

« previous php.internals (#1216) next »