diff options
author | Andrew Dolgov <[email protected]> | 2007-08-13 04:31:57 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-13 04:31:57 +0100 |
commit | feb3185124bd5f1257c6bdfaeb2300845c923ff5 (patch) | |
tree | 807d41110225fd53218f138fee3c9e53bf7fffc1 /magpierss/rss_fetch.inc | |
parent | 3a486dec89f5270812f1e699bb8844b359de53d7 (diff) |
magpie: only force convert encoding if initial parsing failed
Diffstat (limited to 'magpierss/rss_fetch.inc')
-rw-r--r-- | magpierss/rss_fetch.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/magpierss/rss_fetch.inc b/magpierss/rss_fetch.inc index dd475e31d..77a1a704f 100644 --- a/magpierss/rss_fetch.inc +++ b/magpierss/rss_fetch.inc @@ -313,7 +313,7 @@ function _convert_entities ($string) { Output: parsed RSS object (see rss_parse) \*=======================================================================*/ function _response_to_rss ($resp) { - $converted_source = _convert_entities(mb_convert_encoding($resp->results, "UTF-8", mb_detect_encoding($resp->results))); + $converted_source = _convert_entities($resp->results); $rss = new MagpieRSS( $converted_source, MAGPIE_OUTPUT_ENCODING, "UTF-8", false); // if RSS parsed successfully |