Re: [RFC][DISCUSSION] Remove utf8_decode() and utf8_encode()
| From: | Stanislav Malyshev | Date: | Mon, 15 Aug 2016 05:26:36 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Remove utf8_decode() and utf8_encode() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-95171@lists.php.net to get a copy of this message | ||
Hi!
> Hi all,
>
> utf8_decode() and utf8_encode() are not needed and causing problems
> than solving.
Why you think they are not needed?
Also, the manual says "utf8_encode — Encodes an ISO-8859-1 string to
UTF-8". If somebody uses unknown function without even glancing at the
first line of the manual, they deserve all the trouble they get. I mean,
it's not a PhD-level course, it's a single line to read, and not that
long one either, just 6 words. Many beer labels provide more reading
material :)
So, I'm not sure we need to spend time on this. Yes, it duplicates iconv
and recode. So what? It hurts no one.
> https://wiki.php.net/rfc/remove_utf_8_decode_encode
>
> Proposal
> - Document deprecation them now
> - Remove them from 7.2
RFC says "7.1 - Remove utf8_decode() and utf8_encode()".
> I think only few users are using and they shouldn't have problem using
> mbstring/iconv/intl functions.
I would like to see some justification for this - was any research
performed on how many users use them?
--
Stas Malyshev
smalyshev@gmail.com