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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Thu May 09 20:01:32 2024 UTC