From 31679ec2110be3da7678c6ccf0c30d867436c731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9munaire?= Date: Fri, 20 Jan 2012 15:51:34 +0100 Subject: [PATCH] Fix encoding problem when making an answer --- htdocs/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index c6fa1ce..1422666 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -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; }