Re: [RFC][DISCUSSION] Remove utf8_decode() andutf8_encode()

From: Date: Mon, 22 Aug 2016 13:33:04 +0000
Subject: Re: [RFC][DISCUSSION] Remove utf8_decode() andutf8_encode()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-95371@lists.php.net to get a copy of this message
On 22.08.2016 at 12:55, Michael Wallner wrote: > On 22/08/16 12:44, Rowan Collins wrote: > >> As far as I can see, these functions exist because the XML parser >> infrastructure needed them, and someone thought it might be handy to >> expose them to users. Funnily enough, the internal versions actually >> take a parameter for the target encoding, but only support US-ASCII and >> 8859-1: >> https://github.com/php/php-src/blob/master/ext/xml/xml.c#L283 >> >> If anything, they should probably have a "str_" prefix, and maybe even >> be moved into the string section of the source, exposed in such a way >> that the XML parser can still make use of them. > > Thanks for looking deeper. That makes even more sense now. +1 -- Christoph M. Becker

« previous php.internals (#95371) next »