#36486 [Opn->Bgs]: echo strtoupper

From: Date: Wed, 22 Feb 2006 12:16:37 +0000
Subject: #36486 [Opn->Bgs]: echo strtoupper
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93526@lists.php.net to get a copy of this message
ID: 36486 Updated by: tony2001@php.net Reported By: bojidar at bojidar dot com -Status: Open +Status: Bogus Bug Type: Strings related Operating System: linux PHP Version: 4.4.2 New Comment: Use setlocale() to set appropriate locale before that. Previous Comments: ------------------------------------------------------------------------ [2006-02-22 13:13:19] bojidar at bojidar dot com Description: ------------ Hello, The function strtoupper is NOT functioning properly with Cyrillic on ALL of our domains. <? echo strtoupper("ßí Áèáèÿí"); ?> When you search for term or phrase with capital letters and search for the same term or phrase in low cap, it appears that the results are completely different (they shouldn’t be). For instance: search for "ßÍ ÁÈÁÈßÍ" and then try searching for "ßí Áèáèÿí" to see what I mean. Click on the links below and see the search results: http://www.yanbibiyan.com/articlesearch.php?str=ßí%20Áèáèÿí http://www.yanbibiyan.com/articlesearch.php?str=ßÍ%20ÁÈÁÈßÍ Any suggestions how this issue can be corrected would be gladly appreciated? Please advice? Thanks Bob Reproduce code: --------------- <? echo strtoupper("ßí Áèáèÿí"); ?> Expected result: ---------------- ßÍ ÁÈÁÈßÍ Actual result: -------------- see description above ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36486&edit=1

« previous php.bugs (#93526) next »