note 27383 added to function.strtoupper
| From: | metallica at zoznam dot sk | Date: | Wed, 04 Dec 2002 00:14:16 +0000 |
| Subject: | note 27383 added to function.strtoupper | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40319@lists.php.net to get a copy of this message | ||
To Czech and Slovak programmers using Central Europe character sets Windows-1250 or ISO-8859-2:
If you're authoring the scripts on Windows and hosting zour site on a Linux based server, you
might see unsatisfying results using functions strtoupper() and strtolower(). You can use these two
functions instead:
function cs_strtoupper($my_string) {
return strtr( strtoupper($my_string), "áèïéìí¾åòóôàøúùý",
"ÁÈÏÉÌͼÅÒÓÔÀØÚÙÝ" );
}
function cs_strtolower($my_string) {
return strtr( strtolower($my_string), "ÁÈÏÉÌͼÅÒÓÔÀØÚÙÝ",
"áèïéìí¾åòóôàøúùý" );
}
--
http://www.php.net/manual/en/function.strtoupper.php
http://master.php.net/manage/user-notes.php?action=edit+27383
http://master.php.net/manage/user-notes.php?action=delete+27383
http://master.php.net/manage/user-notes.php?action=reject+27383