note 113081 deleted from function.mb-strtoupper by didou
| From: | didou@php.net | Date: | Fri, 19 Apr 2019 09:38:23 +0000 |
| Subject: | note 113081 deleted from function.mb-strtoupper by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210623@lists.php.net to get a copy of this message | ||
Note Submitter: Stefan W
----
mb_strtoupper() will not convert the German "Ã" character into its (relatively new)
uppercase form ("áº").
mb_strtolower() will, however, convert the uppercase form into a lowercase "Ã". (tested
with PHP 5.5.0)
"SS" is still the most common uppercase presentation of "Ã". If you want
this, you'll have to do it manually:
<?php
mb_internal_encoding("UTF-8");
echo mb_strtoupper("MaÃ\n"); // "MAÃ"
echo mb_strtolower("MAáº\n"); // "maÃ"
echo mb_strtoupper(str_replace("Ã", "SS", "MaÃ\n")); //
"MASS"
?>