Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.5
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_25_STABLE
-
Fixed Branches:MOODLE_24_STABLE, MOODLE_25_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
Exporting table contents in XHTML format does create XHTML files with the correct encoding and <xml> header, but browsers don't display the utf-8 encoding correctly unless the following meta-tag is provided.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
I could track this down to the
class table_xhtml_export_format
and the
function start_document($filename) {
I suppose this function should also add the meta-tag.
If I add it manually in the HTML file, it works.
Steps to reproduce:
- Download the statistics report of a mod_quiz as XHTML format.
Tested with Firefox 21.0 (Ubuntu 13.04 and Windows 7)
Moodle 2.5+ (Build: 20130606)
PS: Being already at it I gave the HTML to the W3C validator and it also found that you have one </tbody></table></div> too much at the end. So maybe this could be fixed as well.