|
Posted by Chameleon on 01/24/06 19:56
-------------------------------------------------
header('Content-Type: text/html;charset=utf-8');
setlocale(LC_ALL, array('el_GR', 'ell_grc'));
echo strftime('%a %d %b %Y');
-------------------------------------------------
The html above has a UTF-8 charset, but strftime returns a iso-8859-7
string (1 byte / char) end finally html has this output:
??? 10 ??? 2006.
I suspect the setlocale but when I remove it, it produces english dates
and not greek.
strftime must return something like
Tpi 10 Map 2006
(with greek chars) which is the
Thu 10 Mar 2006
equivalent
Thanks for your time.
Navigation:
[Reply to this message]
|