From 27948850f3660eb424ac9fc5ccea58ac5a1f4eda Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 7 Jul 2007 22:41:16 +0000 Subject: [PATCH] In xml.php, the default should be utf8 and when using it, we don't want to call utf8_encode() --- xml.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xml.php b/xml.php index d81718e..6a69bce 100644 --- a/xml.php +++ b/xml.php @@ -117,7 +117,7 @@ class XML * * @return array Array with all the XML data parsed */ - function parse($data, $utf8 = false) + function parse($data, $utf8 = true) { $this->stack = array(); $this->attribs = array(); @@ -126,7 +126,6 @@ class XML if ($utf8) { - $data = utf8_encode($data); $this->parser = xml_parser_create('UTF-8'); } else -- 2.22.5