You are here: Re: strftime and utf8 « PHP Programming Language « IT news, forums, messages
Re: strftime and utf8

Posted by Chameleon on 01/24/06 20:20

Chameleon wrote:
> -------------------------------------------------
> 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.


aha!
iconv seems usefull ;-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация