Unfortunately, we absolutely must remain 100% backwards compatible with htmlentities(), so this patch should not be applied.
However, I don't see a problem with making phpinfo determine the charset and passing that on to the internal htmlentities function? --Wez. On Thu, 17 Oct 2002, Moriyoshi Koizumi wrote: > Hi, > > I know this may cause a potential BC problem, but I think htmlentities() > should be more consistent with mbstring modules. > > The attached patch changes the behaviour of htmlentities() or its internal > counterparts, to take the character set of the characters as the value of > mbstring.internal_encoding, rather than iso-8859-1, when the charset > parameter is not specified. > > And although it is not fully confirmed, this patch is also expected to fix > the phpinfo() displaying problem in multibyte environments. > > > Any comments are welcome. > > Moriyoshi Koizumi > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php