From 107919b0d684a1ae5b319e9fa97344cbcf949b39 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 28 Mar 2006 19:18:38 +0000 Subject: [PATCH] Only decode from utf8 if we aren't running under utf8. Please, test it. Thanks! --- mod/hotpot/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index fc834e433c..f09af6bc88 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -1268,7 +1268,9 @@ class hotpot_xml_tree { eval('$value = &$this->xml'.$this->xml_root.$tags.$more_tags.';'); if (is_string($value)) { - $value = utf8_decode($value); + if (empty($CFG->unicodedb)) { + $value = utf8_decode($value); + } // decode angle brackets $value = strtr($value, array('<'=>'<', '>'=>'>', '&'=>'&')); -- 2.39.5