-
Bug
-
Resolution: Fixed
-
Major
-
2.3.2
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
w51_
MDL-36212_m25_entities -
The default charset of get_html_translation_table() is ISO-8859-1 for versions of PHP prior to 5.4.0 (http://php.net/manual/en/function.get-html-translation-table.php).
We've detected the problem because some forum emails (those with html entities) were not being sent because a database error (MySQL):
Incorrect string value: '\xA0\xA0\xA0\xA0\xA0\xA0...' for column 'fullmessage' at row 1
|
To fix the problem pass the encoding parameter to get_html_translation_table():
get_html_translation_table(HTML_ENTITIES, ENT_COMPAT|ENT_HTML401, 'utf-8');
|
Maybe other versions of moodle and other components are affected by this bug.
- has a non-specific relationship to
-
MDL-37068 question format learnwise is not utf-8 compatible
-
- Closed
-