php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36486 echo strtoupper
Submitted: 2006-02-22 13:13 UTC Modified: 2006-02-22 13:16 UTC
From: bojidar at bojidar dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.4.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bojidar at bojidar dot com
New email:
PHP Version: OS:

 

 [2006-02-22 13:13 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-22 13:16 UTC] tony2001@php.net
Use setlocale() to set appropriate locale before that.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 17:01:29 2024 UTC