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:22:35 +00:00
parent 107919b0d6
commit 1f1e3288ca

View File

@ -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('&#x003C;'=>'<', '&#x003E;'=>'>', '&#x0026;'=>'&'));