output encoding not consistent
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
Updated by Anonymous over 6 years ago
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.