note 72482 added to function.strftime
| From: | th1nk3r at gmail dot DELETETHIS dot com | Date: | Sat, 20 Jan 2007 17:35:51 +0000 |
| Subject: | note 72482 added to function.strftime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121955@lists.php.net to get a copy of this message | ||
Function strftime() use the locales installed in your system (linux).
If you are like me and only leave in the system the locales you use normally (en_US and your own
language locale, like es_ES), you'll only be able to use the locales installed. If your
application is translated to other languages, you need these locales too.
The name of the locale in your system is important too. This can be a problem when you want to
distribute the app.
If you have this locales in your system:
en_US/ISO-8859-1
en_US.UTF-8/UTF-8
es_ES/ISO-8859-1
es_ES@euro/ISO-8859-15
es_ES.UTF-8/UTF-8
es_ES@euro/UTF-8
and use setlocale('es_ES'), the result will use the iso-8859-1 charset even if you have
all your system, files and configuration options in UTF-8. To receive content in UTF-8, in this
example, you need to use setlocale('es_ES.UTF-8') or
setlocale('es_ES.UTF-8@UTF-8').
The definition of locales can change from one system to another, and so the charset from the
results.
----
Server IP: 130.206.1.5
Probable Submitter: 81.202.160.43
----
Manual Page -- http://www.php.net/manual/en/function.strftime.php
Edit -- https://master.php.net/note/edit/72482
Del: integrated -- https://master.php.net/note/delete/72482/integrated
Del: useless -- https://master.php.net/note/delete/72482/useless
Del: bad code -- https://master.php.net/note/delete/72482/bad+code
Del: spam -- https://master.php.net/note/delete/72482/spam
Del: non-english -- https://master.php.net/note/delete/72482/non-english
Del: in docs -- https://master.php.net/note/delete/72482/in+docs
Del: other reasons-- https://master.php.net/note/delete/72482
Reject -- https://master.php.net/note/reject/72482
Search -- https://master.php.net/manage/user-notes.php