Page 1 of 1

[SOLVED] modified_date & created_date character issue

Posted: Wed Feb 23, 2011 1:55 pm
by manuel
When using the {modified_date} & {created_date} tag in the content there's an issue with character encoding.
This doesn't occur when using the {current_date} tag.

In the example below, the locale is set to french:
{modified_date format="%A %d %B %Y - %T %Z"} >> jeudi 03 février 2011 - 14:37:42 CET

The current_date does however return a correctly formatted date:
{current_date format="%A %d %B %Y - %T %Z"} >> jeudi 03 février 2011 - 14:43:07 CET

I've tried my best to get it in to UTF-8...

My attempts to fix this:
{modified_date format="%A %d %B %Y - %T %Z"|escape:'UTF8'}
{modified_date format="%A %d %B %Y - %T %Z"|escape:'UTF-8'}
{modified_date format="%A %d %B %Y - %T %Z"|escape:'UTF-8':'UTF8'}
and finally...
{capture assign="modified"}{modified_date format="%A %d %B %Y - %T %Z"}{/capture}
{$modified|escape:"UTF-8"}

The output remains the same... :-\ jeudi 03 février 2011 - 14:37:42 CET

Any suggestions?

ps: yes, default_encoding & admin_encoding are set to utf-8 ;)

Greetings,
Manuel

Re: modified_date & created_date character issue

Posted: Mon Apr 11, 2011 11:40 am
by manuel
Solved and posted a bug report http://dev.cmsmadesimple.org/bug/view/6386

Greetings,
Manuel