|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-06-27 09:54 UTC] daniel at adsdigita dot com dot br
Description:
------------
So,
I leave in Brazil and in our language we have
de caracter "?" (means IS in English), the matter of
fact is: strtolower couldn't work in this caracter ("?") to change it in "?"
Reproduce code:
---------------
//Example:
echo strtolower("?");
Expected result:
----------------
?
Actual result:
--------------
?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
Works fine here: [derick@kossu derick]$ php <?php echo strtolower("?"); ?> ? Did you select the correct locale with setlocale() ?Verified with 4.3.3 and german umlauts: strtolower("S?DSTADT") results in "s?dstadt"I'm french on unix and PHP 4.2.3 and I got the same bug whith this function but, it works if you do : $val = " NUM?RO "; $tab=array("?" => "?", ..........); $str = strtolower(strtr($val,$tab)); voila c est fini :)