note 90693 added to function.strftime

From: Date: Tue, 05 May 2009 09:46:55 +0000
Subject: note 90693 added to function.strftime
Groups: php.notes 
Request: Send a blank email to php-notes+get-154214@lists.php.net to get a copy of this message
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 ---- Server IP: 213.92.11.19 Probable Submitter: 193.204.90.67 ---- Manual Page -- http://www.php.net/manual/en/function.strftime.php Edit -- https://master.php.net/note/edit/90693 Del: integrated -- https://master.php.net/note/delete/90693/integrated Del: useless -- https://master.php.net/note/delete/90693/useless Del: bad code -- https://master.php.net/note/delete/90693/bad+code Del: spam -- https://master.php.net/note/delete/90693/spam Del: non-english -- https://master.php.net/note/delete/90693/non-english Del: in docs -- https://master.php.net/note/delete/90693/in+docs Del: other reasons-- https://master.php.net/note/delete/90693 Reject -- https://master.php.net/note/reject/90693 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154214) next »