Simpler Unicode solution for PHP6
| From: | Andrea Faulds | Date: | Thu, 20 Feb 2014 16:16:36 +0000 |
| Subject: | Simpler Unicode solution for PHP6 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-72715@lists.php.net to get a copy of this message | ||
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?
—
Andrea Faulds
http://ajf.me/