Page 1 of 1
bad date format in entries.tpl
Posted: Fri Apr 15, 2005 3:22 am
by oxygenws
in entries.tpl file, the following line:
Code: Select all
<h3 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h3>
returns some bad codes and characters, in some bad encoding (not utf-8, it returns in windows-1256 format!!!!) in Persian language. (OS = windows)
i think it is Smarty fault!! am i right?!
thanks, omid
Re: bad date format in entries.tpl
Posted: Fri Apr 15, 2005 10:31 am
by garvinhicking
Hm, that function should always return the strings defined in the OS Locale system. If your lkanguage include uses a Locale which uses Windows-1256, but you define the charset as UTF8, it will not work.
You'll need to use a locale like 'fa@UTF-8' or so, that depends on the OS. I sadly don't know anything about windows locales.
Regards,
Garvin
Posted: Fri Apr 15, 2005 11:14 am
by oxygenws
yes, i test it in linux, linux returns month names in english format.
but windows, returns gregorian month names in Persian!! (not Iranian calendar!) and uses windows-1256! and i think i cannot change the output encoding!!
Thanks, i think i must call Microsoft!!!
