From 1f1e3288ca1afd9b60860182520fd59da54fa548 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 28 Mar 2006 19:22:35 +0000 Subject: [PATCH] Only decode from utf8 if we aren't running under utf8. Please test it. Thanks! --- question/format/hotpot/format.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/question/format/hotpot/format.php b/question/format/hotpot/format.php index 3b24468ee2..0c2b2c9f7a 100644 --- a/question/format/hotpot/format.php +++ b/question/format/hotpot/format.php @@ -486,7 +486,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 and ampersands $value = strtr($value, array('<'=>'<', '>'=>'>', '&'=>'&')); -- 2.39.5