note 113081 deleted from function.mb-strtoupper by didou

From: 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" ?>

« previous php.notes (#210623) next »