setlocale/strftime issue
Posted
by Manos Dilaverakis
on Stack Overflow
See other posts from Stack Overflow
or by Manos Dilaverakis
Published on 2010-04-30T11:21:49Z
Indexed on
2010/04/30
11:27 UTC
Read the original article
Hit count: 339
php
|localization
I am using the following to output the full name of a month in Greek.
setlocale(LC_TIME, 'el_GR');
strftime("%B");
This works, except the output string is ISO-8859-7 (greek code page), which is a problem since I need a UTF-8 string. I could put this through iconv to convert it, but I was wondering if there was a way to do that without resorting to an extra function.
Could you somehow tell strftime to output a UTF-8 string in this case?
© Stack Overflow or respective owner