Re: [RFC][DISCUSSION] Remove utf8_decode() and utf8_encode()

From: Date: Mon, 22 Aug 2016 10:55:41 +0000
Subject: Re: [RFC][DISCUSSION] Remove utf8_decode() and utf8_encode()
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-95368@lists.php.net to get a copy of this message
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. -- Regards, Mike

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#95368) next »