Re: What should we do with utf8_encode and utf8_decode?

From: Date: Sun, 21 Mar 2021 21:00:37 +0000
Subject: Re: What should we do with utf8_encode and utf8_decode?
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-113653@lists.php.net to get a copy of this message
On Sun, Mar 21, 2021 at 10:08 PM Kamil Tekiela <tekiela246@gmail.com> wrote:

> I think we really do not need to keep these functions. As for the
> alternative that we can offer, iconv seems to be doing exactly the same
> thing and even better. mb_convert_encoding does the same but also silently
> ignores invalid characters. So we already offer plenty of alternatives. We
> don't need to add anything new.
>

Just a quick reminder that it's possible to compile PHP without mbstring
and intl, which means that some hosts will provide PHP without these
extensions, and some packagers make them available as separate packages
that users can't or don't know how to install. Maybe we've got an
opportunity to think about making these extensions mandatory?

-- 
Best regards,
Max Semenik


Thread (40 messages)

« previous php.internals (#113653) next »