Project

General

Profile

Actions

Refactoring #6629

open

encoding with htmlentities

Added by Anonymous almost 10 years ago. Updated almost 10 years ago.

Status:
Needs more info
Priority:
Low
Assignee:
-
Start date:
26/08/2013
Due date:
% Done:

0%

Estimated time:

Description

related issue: #6520

Text encoding issues occur when using the htmlentities function, http://php.net/manual/en/function.htmlentities.php. Prior to PHP 5.4.0, this function expects ISO-8859-1 input; from PHP 5.4.0 onwards, it expects UTF-8. This default value can be changed, but it requires changing a substantial number of files in the repository. For most english and dutch string resources, this problem remains invisible, I suppose a French version, for example, would show it more clearly.

I resolved the issue manually in some visible instances; a simple script could easily resolve it everywhere. However, given the large number of occurrences, I would suggest to ignore it for now, and reconsider it in the next version. When the required PHP version for chamilo becomes 5.4, this issue will auto-resolve.

As an alternative solution, the resource files could be re-encoded as ISO-8859-1 instead of UTF8 - personally, I don't consider this a good idea.

Actions #1

Updated by Anonymous almost 10 years ago

  • Status changed from New to Needs more info
Actions

Also available in: Atom PDF