Bug #77555 [Opn->Dup]: Why does mb_strtoupper change 'Ã' to 'ss' in words like 'groÃ'?
| From: | nikic@php.net | Date: | Fri, 01 Feb 2019 10:35:51 +0000 |
| Subject: | Bug #77555 [Opn->Dup]: Why does mb_strtoupper change 'Ã' to 'ss' in words like 'groÃ'? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219320@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77555&edit=1
ID: 77555
Updated by: nikic@php.net
Reported by: dirk dot gerigk at atraveo dot com
Summary: Why does mb_strtoupper change 'Ã' to 'ss' in words
like 'groÃ'?
-Status: Open
+Status: Duplicate
Type: Bug
Package: *Unicode Issues
Operating System: Windows 10
PHP Version: 7.3.1
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #76696.
Previous Comments:
------------------------------------------------------------------------
[2019-02-01 10:29:30] dirk dot gerigk at atraveo dot com
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77555&edit=1