summaryrefslogtreecommitdiff
path: root/magpierss/rss_fetch.inc
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-13 04:31:57 +0100
committerAndrew Dolgov <[email protected]>2007-08-13 04:31:57 +0100
commitfeb3185124bd5f1257c6bdfaeb2300845c923ff5 (patch)
tree807d41110225fd53218f138fee3c9e53bf7fffc1 /magpierss/rss_fetch.inc
parent3a486dec89f5270812f1e699bb8844b359de53d7 (diff)
magpie: only force convert encoding if initial parsing failed
Diffstat (limited to 'magpierss/rss_fetch.inc')
-rw-r--r--magpierss/rss_fetch.inc2
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