note 103627 added to function.setlocale
| From: | tomas dot hampl at gmail dot com | Date: | Sat, 23 Apr 2011 20:35:18 +0000 |
| Subject: | note 103627 added to function.setlocale | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179107@lists.php.net to get a copy of this message | ||
On Linux, setlocale() depends on the installed locales. To see which locales are available to PHP,
run this from the terminal:
"locale -a"
Provided list are all locales that are available on your server for PHP to use. To add a new one,
run
locale-gen <locale name> (this may need sudo / root permissions), for example to add a Czech
locale, run something like this:
"sudo locale-gen cs_CZ.utf8"
Then you can use this locale declaration:
setlocale(LC_ALL, 'cs_CZ.utf8');
----
Server IP: 69.147.83.197
Probable Submitter: 213.29.200.155
----
Manual Page -- http://www.php.net/manual/en/function.setlocale.php
Edit -- https://master.php.net/note/edit/103627
Del: integrated -- https://master.php.net/note/delete/103627/integrated
Del: useless -- https://master.php.net/note/delete/103627/useless
Del: bad code -- https://master.php.net/note/delete/103627/bad+code
Del: spam -- https://master.php.net/note/delete/103627/spam
Del: non-english -- https://master.php.net/note/delete/103627/non-english
Del: in docs -- https://master.php.net/note/delete/103627/in+docs
Del: other reasons-- https://master.php.net/note/delete/103627
Reject -- https://master.php.net/note/reject/103627
Search -- https://master.php.net/manage/user-notes.php