Only decode from utf8 if we aren't running under utf8.

Please, test it. Thanks!
This commit is contained in:
stronk7 2006-03-28 19:18:38 +00:00
parent 5c30945a81
commit 107919b0d6

View File

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