Project

General

Profile

Actions

Bug #57355

closed

ViewHelper format.date not encoding entities

Added by Gonçal Carrero over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-03-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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')));

Actions #1

Updated by Markus Klein over 10 years ago

  • Project changed from 2559 to TYPO3 Core
Actions #2

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?

Actions #3

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.

Actions #4

Updated by Markus Klein over 10 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF