note 27383 deleted from function.strtoupper by derick
| From: | derick@php.net | Date: | Tue, 30 Aug 2005 11:06:17 +0000 |
| Subject: | note 27383 deleted from function.strtoupper by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-94392@lists.php.net to get a copy of this message | ||
Note Submitter: metallica at zoznam dot sk
----
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), "ÁÈÏÉÌͼÅÒÓÔÀØÚÙÝ",
"áèïéìí¾åòóôàøúùý" );
}