note 105752 deleted from function.mb-strtolower by danbrown
| From: | danbrown@php.net | Date: | Mon, 12 Sep 2011 15:52:40 +0000 |
| Subject: | note 105752 deleted from function.mb-strtolower by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183113@lists.php.net to get a copy of this message | ||
Note Submitter: akniep at linklift dot net
----
Please, note that when using with UTF-8 mb_strtolower will only convert upper case characters to
lower case which are marked with the Unicode property "Upper case letter"
("Lu"). However, there are also letters such as "Letter numbers" (Unicode
property "Nl") that also have lower case and upper case variants. These characters will
not be converted be mb_strtolower!
Example:
The Roman letters â
, â
¡, â
¢, ..., â
¯ (UTF-8 code points 8544 through 8559) also
exist in their respective lower case variants â
°, â
±, â
², ..., â
¿ (UTF-8 code points
8560 through 8575) and should, in my opinion, also be converted by mb_strtolower, but they are not!
Big internet-companies (like Google) do match both variants as semantically equal (since the
representations only differ in case).