note 31215 added to function.strtolower
| From: | visualmind@php.net | Date: | Mon, 14 Apr 2003 06:52:41 +0000 |
| Subject: | note 31215 added to function.strtolower | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46583@lists.php.net to get a copy of this message | ||
Regarding the note above from info at saudiabm dot com:
Using strtolower or strtoupper to convert non-ascii charachters like Arabic and etc requires
setlocale LC_CTYPE first http://www.php.net/setlocale
echo strtolower('åÐå ÇáÚÈÇÑÉ ÓÊÙåÑ ÈÔßá ÛíÑ ÕÍíÍ'); // this will
look messy
setlocale(LC_CTYPE, 'ar_SA'); // Using arabic Saudi char set
echo strtolower('åÐå ÇáÚÈÇÑÉ ÔÊÙåÑ ÈÔßá ÕÍíÍ'); // this will look
fine
on windows you can use setlocale(LC_CTYPE, 'arabic');
--
http://www.php.net/manual/en/function.strtolower.php
http://master.php.net/manage/user-notes.php?action=edit+31215
http://master.php.net/manage/user-notes.php?action=delete+31215
http://master.php.net/manage/user-notes.php?action=reject+31215