Re: Simpler Unicode solution for PHP6
| From: | Pierre Joye | Date: | Thu, 20 Feb 2014 16:23:56 +0000 |
| Subject: | Re: Simpler Unicode solution for PHP6 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72716@lists.php.net to get a copy of this message | ||
Hi,
On Feb 20, 2014 11:17 PM, "Andrea Faulds" <ajf@ajf.me> wrote:
>
> Hi,
>
> As a simpler to implement approach to Unicode, could we perhaps support
it just by adding an “is UTF-8” flag to strings internally? Then unmodified
functions would just see a normal string and handle it like they do any
other, and modified and new Unicode-aware functions would test for the
presence of the flag and handle the string appropriately in that case.
>
> Thoughts?
That could be an option during the development phase. However I do not like
the idea of a flag for the final implementation, it creates more troubles
from an application point of view.
The main problem remains tho' (see the other threads). If we do not manage
to solve it within the next months, we can delay 6 for another year or two.
Cheers,
Pierre