Re: [VOTE] Locale-independent case conversion
| From: | Dusk | Date: | Thu, 25 Nov 2021 09:17:59 +0000 |
| Subject: | Re: [VOTE] Locale-independent case conversion | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116502@lists.php.net to get a copy of this message | ||
On Nov 25, 2021, at 01:08, Hans Henrik Bergan <divinity76@gmail.com> wrote:
> btw why is this code *not* getting dotted capital i on 3v4l?
> https://3v4l.org/D1WG1#v7.4.26
> it gets ["res_hex"]=> string(2) "49"
>
> <?php
> setlocale(LC_ALL, "Turkish");
Because "Turkish" isn't a locale. "tr_TR" is.
https://3v4l.org/GD91W#v7.4.26
Notice that the output doesn't show up correctly, as it is not UTF-8. (Which is part of the
problem addressed by this RFC.)