|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-02-01 10:35 UTC] nikic@php.net
-Status: Open
+Status: Duplicate
[2019-02-01 10:35 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ I try to understand why this was implemented. When you do print mb_strtolower("Groẞ"); it becomes 'groß' UPPER CASE ẞ becomes LOWER CASE ß print mb_strtolower("Groß"); will be 'groß' LOWER CASE ß unchanged print mb_strupper("groẞ"); will be 'GROẞ' UPPER CASE ẞ stays unchanged! But print mb_strtoupper("groß"); becomes 'GROSS' Why does it not become UPPER CASE ẞ? Not all words in german can be changed in that way and should only changed if needed. UPPER CASE ẞ is offical see https://en.wikipedia.org/wiki/Capital_%E1%BA%9E Test script: --------------- print mb_strtoupper("groß"); Expected result: ---------------- GROẞ Actual result: -------------- GROSS