note 90693 deleted from function.strftime by thiago
| From: | thiago@php.net | Date: | Tue, 05 May 2009 12:25:37 +0000 |
| Subject: | note 90693 deleted from function.strftime by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154222@lists.php.net to get a copy of this message | ||
Note Submitter: hujuice {AT} inservibile {DOT} org
----
In response to eljaunis and khaled,
your way to convert the charset is surely working.
But if you are on Linux and you can build your locales, you can simply run the following commands
(as root):
# echo 'ar.UTF8 UTF8' >> /etc/locale.gen
# /usr/sbin/locale-gen
Then, in your PHP:
<?php
setlocale(LC_ALL, 'ar.UTF8');
strftime('%A %d de %B de %Y', time())
?>
And it will work in UTF8.
If you are on Windows, I really don't know.
Regards,
hujuice