In xml.php, the default should be utf8 and when using it, we don't want to call utf8_...
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 7 Jul 2007 22:41:16 +0000 (22:41 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 7 Jul 2007 22:41:16 +0000 (22:41 +0000)
xml.php

diff --git a/xml.php b/xml.php
index d81718efa5ac27071be7faeba16ef05bdc8764c1..6a69bced2d49c758be604664aee006f3bf2281b5 100644 (file)
--- 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