I2CE_Template::importHTMLText improperly encodes text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
I2CE |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I discovered that "Hôpital" was being sent to the browser in two different ways on the same page. This encoding issue drove me nutters.
In the facility drop-down, this was showing up as "Hôpital". In the report, it would display properly.
After much digging, head-scratching, etc., I found that I2CE_Template:
As the user-contributed notes at http://
In order to avoid encoding issues, then, loadXML() must be used.
Should probably do the same with loadHTMLFile and make it use DOMDocument::load() instead of DOMDocument:
Changed in i2ce: | |
status: | New → Fix Released |