note 86078 added to function.setlocale
| From: | LeighMorresi at osu1 dot php dot net | Date: | Thu, 02 Oct 2008 06:27:25 +0000 |
| Subject: | note 86078 added to function.setlocale | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144967@lists.php.net to get a copy of this message | ||
Setting locale that is not supported by your system will result in some string operations returning
a question mark "?" in your strings where it needs to perform transliteration.
1) Always check the return of setlocale() to ensure it has set to something supported
2) on Linux you can use the "locale -a" command to find a list of supported locales
----
Server IP: 203.88.112.190
Probable Submitter: 203.166.32.205
----
Manual Page -- http://www.php.net/manual/en/function.setlocale.php
Edit -- https://master.php.net/note/edit/86078
Del: integrated -- https://master.php.net/note/delete/86078/integrated
Del: useless -- https://master.php.net/note/delete/86078/useless
Del: bad code -- https://master.php.net/note/delete/86078/bad+code
Del: spam -- https://master.php.net/note/delete/86078/spam
Del: non-english -- https://master.php.net/note/delete/86078/non-english
Del: in docs -- https://master.php.net/note/delete/86078/in+docs
Del: other reasons-- https://master.php.net/note/delete/86078
Reject -- https://master.php.net/note/reject/86078
Search -- https://master.php.net/manage/user-notes.php