Bug #6520

output encoding not consistent
0%
Description
characters with diacritics from a UTF-8 encoded .i18n file (e.g. umlaut-u ü) are not displayed correctly. Browser: firefox, encoding: UTF-8.
Note: the french translation (which has a lot of diacritcs) displays correctly.
screenshot in attachment
Files
History
Updated by Anonymous over 9 years ago
edit: in the screenshot, the error can be seen in the notification in the top-right corner
Updated by Anonymous over 9 years ago
Edit: An example of the same notification (different content object, but same string, from same resource .i18n file), where the umlaut-u ü is displayed correctly
Updated by Anonymous over 9 years ago
update:
Found the source of the inconsistency: use of htmlentities function on unicode strings.
In this instance: file application/weblcms/php/lib/tool/component/publication_updater.class.php on line 58
The htmlentities function takes ISO-8859-1 by default on PHP < 5.4.0
the encoding parameter should be set to UTF-8 manually
Resolved in the instance that triggered this issue. Other occurances will be fixed on the go.
Remark: I see no reason to actually use htmlentities when the strings it operates on are already UTF-8, perhaps we can omit it, or put it somewhere central instead of all over the place.
Updated by Anonymous over 9 years ago
- Status changed from New to Bug resolved
- Target version set to LCMS 4 Beta