note 65943 added to function.strtoupper

From: Date: Wed, 10 May 2006 11:31:01 +0000
Subject: note 65943 added to function.strtoupper
Groups: php.notes 
Request: Send a blank email to php-notes+get-111070@lists.php.net to get a copy of this message
When using UTF-8 and need to convert to uppercase with special characters like the german ä,ö,ü (didn't test for french,polish,russian but think it should work, too) try this: function strtoupper_utf8($string){ $string=utf8_decode($string); $string=strtoupper($string); $string=utf8_encode($string); return $string; } ---- Server IP: 212.124.37.9 Probable Submitter: 84.153.41.70 ---- X-Spam-Status: Yes, hits=7.4 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HEAD_ILLEGAL_CHARS autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.strtoupper.php Edit -- http://master.php.net/note/edit/65943 Del: integrated -- http://master.php.net/note/delete/65943/integrated Del: useless -- http://master.php.net/note/delete/65943/useless Del: bad code -- http://master.php.net/note/delete/65943/bad+code Del: spam -- http://master.php.net/note/delete/65943/spam Del: non-english -- http://master.php.net/note/delete/65943/non-english Del: in docs -- http://master.php.net/note/delete/65943/in+docs Del: other reasons-- http://master.php.net/note/delete/65943 Reject -- http://master.php.net/note/reject/65943 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111070) next »