Re: What should we do with utf8_encode and utf8_decode?

From: Date: Mon, 22 Mar 2021 13:18:42 +0000
Subject: Re: What should we do with utf8_encode and utf8_decode?
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-113668@lists.php.net to get a copy of this message
Le lun. 22 mars 2021 à 14:14, Sara Golemon <pollita@php.net> a écrit : > On Mon, Mar 22, 2021 at 6:12 AM Rowan Tommins <rowan.collins@gmail.com> > wrote: > > I realise you can't speak for anyone else, but as a point of interest, > > would you be OK with a polyfill having a requirement on ext/mbstring or > > ext/iconv, or would you have a strong preference for a replacement built > > into the core (i.e. guaranteed available without any optional packages)? > > > > Can you clarify what *YOU* mean by a polyfill? Because you're talking > about dependence on iconv/mbstring/icu which implies you want a polyfill > that does something other than what the original utf8_en/decode() functions > do, and those functions certainly do not need external dependencies. > They're really just not that complex. > Shameless plug: the polyfill exists, without any dependency, see https://github.com/symfony/polyfill-php72/blob/main/Php72.php ;) Nicolas

« previous php.internals (#113668) next »