I think i’ve found the reason, and it’s an UTF-8 Issue/charset-issue,
although the charset over MODx’s system settings is set to EN and UTF8.
(as you can see in the screen cast above)
My local server (xampp/win7) has a different charset (windows-1255) and it’s effecting dates outputting those question marks .
First of all, i’ve found a way to convert and display the right chars for those question marks with the help of iconv function.
something like this:
<?php
$output = @iconv('windows-1255', 'UTF-8', $output);
/* i don't know why but the code below doesn't work unlike the line above */
$output = utf8_encode($output);
?>
so now i got it all in utf-8 shown as Hebrew, nice. but now what?
my server has his own charset causing this, and for this particular site i want it (the date) to be in English
but modx settings doesn’t effect. i’m confused.
How should i resolve this?
_
umm.. another thought:
Let’s say i wanted to use a foreign language encoded as utf-8 over modx, i would have to hack the code through with iconv as well?
i think there’s must be a better solution for the back-end manager than hacking all the code so dates will be converted to the right Charset. or am i missing something?
_
i found that i can
setlocale(LC_ALL, 'english-us');
// win:'english-us' ,linux:'en_US' ?
but why isn’t it a part of modx’s settings? or should it just ment to be edited via php.ini?