note 113081 added to function.mb-strtoupper
| From: | StefanW | Date: | Tue, 27 Aug 2013 17:44:50 +0000 |
| Subject: | note 113081 added to function.mb-strtoupper | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196096@lists.php.net to get a copy of this message | ||
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"
?>
----
Server IP: 192.35.244.50
Probable Submitter: 213.47.132.228
----
Manual Page -- http://php.net/manual/en/function.mb-strtoupper.php
Edit -- https://master.php.net/note/edit/113081
Del: integrated -- https://master.php.net/note/delete/113081/integrated
Del: useless -- https://master.php.net/note/delete/113081/useless
Del: bad code -- https://master.php.net/note/delete/113081/bad+code
Del: spam -- https://master.php.net/note/delete/113081/spam
Del: non-english -- https://master.php.net/note/delete/113081/non-english
Del: in docs -- https://master.php.net/note/delete/113081/in+docs
Del: other reasons-- https://master.php.net/note/delete/113081
Reject -- https://master.php.net/note/reject/113081
Search -- https://master.php.net/manage/user-notes.php