From: stronk7 Date: Tue, 28 Mar 2006 19:18:38 +0000 (+0000) Subject: Only decode from utf8 if we aren't running under utf8. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=107919b0d684a1ae5b319e9fa97344cbcf949b39;p=moodle.git Only decode from utf8 if we aren't running under utf8. Please, test it. Thanks! --- 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('<'=>'<', '>'=>'>', '&'=>'&'));