2013-01-14, 07:11:10
(2013-01-14, 04:37:31)Carlos Wrote: With XAMPP on Windows XP I have those problems displaying date strings having non-English characters: like März, miércoles... Accented/punctuated (non US-ASCII) characters are all displayed as a diamond symbol.
With plugins like I18N Search or News Manager, if I edit them by changing strftime(...) to utf8_encode(strftime(...)) then dates are diplayed ok (also works with iconv("", "UTF-8",strftime(...))) )
Anyone knows if there's a way to select a locale that uses UTF-8 in XAMPP without having to use that kind of patch? In Spanish I've tried with "es_ES.utf8,es_ES,esp,spanish,es" but doesn't work, I don't get utf-8. (The locale being used is "Spanish_Spain.1252")
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 :-)