]> git.mjollnir.org Git - moodle.git/commitdiff
Only decode from utf8 if we aren't running under utf8.
authorstronk7 <stronk7>
Tue, 28 Mar 2006 19:18:38 +0000 (19:18 +0000)
committerstronk7 <stronk7>
Tue, 28 Mar 2006 19:18:38 +0000 (19:18 +0000)
Please, test it. Thanks!

mod/hotpot/lib.php

index fc834e433cd0c42dab303cae73b18e93bddce0aa..f09af6bc88e464318aa1a719d5ca3c99ee61c091 100644 (file)
@@ -1268,7 +1268,9 @@ class hotpot_xml_tree {
                eval('$value = &$this->xml'.$this->xml_root.$tags.$more_tags.';');\r
 \r
                if (is_string($value)) {\r
-                       $value = utf8_decode($value);\r
+            if (empty($CFG->unicodedb)) {\r
+                           $value = utf8_decode($value);\r
+            }\r
 \r
                        // decode angle brackets\r
                        $value = strtr($value, array('&#x003C;'=>'<', '&#x003E;'=>'>', '&#x0026;'=>'&'));\r