Bug #57355
closedViewHelper format.date not encoding entities
0%
Description
We have a template in which we have a <f:format.date format="%B">@{eventDate.dateTimeStamp}</f:format.date> this outputs the month
localised. It works well, but the problem is that some months are not showing because they have entities not encoded. For example if month is March but localised in Catalan (Març), this month is not showing.
Our solution at this moment is change line 114 of the viewhelper:
return strftime($format, $date->format('U'));
for:
return htmlentities(strftime($format, $date->format('U')));
Updated by Markus Klein over 10 years ago
- Project changed from 2559 to TYPO3 Core
Updated by Markus Klein over 10 years ago
- Category set to Fluid
- Status changed from New to Needs Feedback
- Is Regression set to No
- TYPO3 Version set to 6.2
This sounds more like an encoding problem. Is your FE output utf8 encoded?
Updated by Gonçal Carrero over 10 years ago
I checked it again and FE was with UTF-8 encoding but we had:
config.locale_all = ca_ES instead of config.locale_all = ca_ES.utf-8
Changing that it seems now it's working without the change in the code.
Sorry!!! and thanks for your help Markus.
Updated by Markus Klein over 10 years ago
- Status changed from Needs Feedback to Closed