We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 51ebb847 authored by jurgbohn's avatar jurgbohn

UTF-8 encode result from SimpleXML->toXML() in XML::prettyXML()

parent 16936518
...@@ -3,7 +3,7 @@ class XML { ...@@ -3,7 +3,7 @@ class XML {
public static function prettyXML($xml) { public static function prettyXML($xml) {
$dom = new DOMDocument('1.0'); $dom = new DOMDocument('1.0');
$dom->preserveWhitespace = false; $dom->preserveWhitespace = false;
$dom->loadXML($xml->asXML()); $dom->loadXML(utf8_encode($xml->asXML()));
$dom->formatOutput = true; $dom->formatOutput = true;
return($dom->saveXML()); return($dom->saveXML());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment