[pLog-svn] r1332 - plog/trunk/class/xml/rssparser/magpierss

mark at devel.plogworld.net mark at devel.plogworld.net
Sun Mar 6 15:27:03 GMT 2005


Author: mark
Date: 2005-03-06 15:27:02 +0000 (Sun, 06 Mar 2005)
New Revision: 1332

Modified:
   plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc
Log:
change xml_parser_create($in_enc) to xml_parser_create(''). Let php decide the encoding by itself. (It seems a bug in XML when encoding is UTF-8).

Modified: plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc
===================================================================
--- plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc	2005-03-06 11:13:25 UTC (rev 1331)
+++ plog/trunk/class/xml/rssparser/magpierss/rss_parse.inc	2005-03-06 15:27:02 UTC (rev 1332)
@@ -522,7 +522,8 @@
         }
         
         if ($this->known_encoding($in_enc)) {
-            return array(xml_parser_create($in_enc), $source);
+            // return array(xml_parser_create($in_enc), $source);
+            return array(xml_parser_create(''), $source);
         }
         
         // the dectected encoding is not one of the simple encodings PHP knows




More information about the pLog-svn mailing list