diff options
author | Andrew Dolgov <[email protected]> | 2007-08-13 07:23:23 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-13 07:23:23 +0100 |
commit | 458cb9097acd52e0a67d348137c47d0eb9792e99 (patch) | |
tree | 80578f9007e2a14f870132bdad417cb1b4a3085a | |
parent | af856f1598342fe495306dff996b07eda4a9a7dd (diff) |
magpie: convert encoding if needed before parser instantiation
-rw-r--r-- | magpierss/rss_parse.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/magpierss/rss_parse.inc b/magpierss/rss_parse.inc index 0dfa5c7fb..66e5e65f2 100644 --- a/magpierss/rss_parse.inc +++ b/magpierss/rss_parse.inc @@ -149,11 +149,11 @@ class MagpieRSS { $enc = mb_detect_encoding($string); } + $source = mb_convert_encoding($source, "UTF-8", $enc); + list($parser, $source) = $this->create_parser($source, $output_encoding, $input_encoding, $detect_encoding); - $source = mb_convert_encoding($source, "UTF-8", $enc); - $this->parser = $parser; xml_set_object( $this->parser, $this ); |