Re: Unicode strings?
| From: | Yasuo Ohgaki | Date: | Thu, 13 Mar 2014 20:32:39 +0000 |
| Subject: | Re: Unicode strings? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73128@lists.php.net to get a copy of this message | ||
Hi Stas,
On Fri, Mar 14, 2014 at 4:59 AM, Stas Malyshev <smalyshev@sugarcrm.com>wrote:
> > Good point, but users should use NFC UTF-8 without BOM for
> > variable/function names.
>
> Given that the user has no means to distinguish normal forms and other
> invisible details, what you're saying is "stuff would randomly not work,
> but we'll make it user's fault because we'd have a small print note in
> our docs that says the user has to satisfy conditions for which he has
> no means to check". Not the best idea.
I agree with your argument in general, but restricting pattern will break
existing scripts which are working now. If
$café !== $café
0x63 0x61 0x66 0xC3 0xA9
0x63 0x61 0x66 0x65 0xCC 0x81
is issue. It's current issue. Do we really have to care about this and
introduce BC? It seems documentation would be enough.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net