Fix encoding problem when making an answer

This commit is contained in:
Némunaire 2012-01-20 15:51:34 +01:00
parent c70382760a
commit 31679ec211

View File

@ -91,7 +91,7 @@ if (!empty($view))
$doc = new DOMDocument();
$doc->load(DESTINATION . "/" . $k . ".xml");
echo htmlentities($doc->getElementsByTagName("content")->item(0)->textContent);
echo htmlentities(utf8_decode($doc->getElementsByTagName("content")->item(0)->textContent));
$language = strtolower($doc->getElementsByTagName("language")->item(0)->textContent);
$ref = $k;
}