Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3.2
-
Component/s: Forum
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_23_STABLE
-
Fixed Branches:MOODLE_23_STABLE, MOODLE_24_STABLE
-
Pull from Repository:
-
Pull Master Branch:w51_
MDL-36212_m25_entities -
Pull Master Diff URL:
Description
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.
Gliffy Diagrams
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-37068 question format learnwise is not utf-8 compatible
-
- Closed
-