2013-01-15, 02:02:02
(2013-01-14, 07:11:10)mvlcek Wrote: Yeah, Microsoft was never one to use standards...
It seems impossible to set a UTF-8 locale in PHP on Windows.
And I suppose in east european countries another code page is used by Windows - then utf8_encode won't work, as it assumes iso-8859-1 (which is a subset of Windows-1252).
Luckily most hosting providers use Linux hosts :-)
What about using iconv("", "UTF-8",strftime(...))) instead of utf8_encode(strftime(...))? (as yojoe suggested in post 6)
Would that work better for everyone? Or is there any disadvantage?
What I don't like about this is that users with Windows (be it dev or production sites) have to patch plugins that use strftime. If there's no other solution I think it would be nice to agree some kind of gsconfig setting like GSWINUTF8ENCODE (I'm not inspired today) so that plugins use iconv or utf8_encode if enabled.