From feb3185124bd5f1257c6bdfaeb2300845c923ff5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Aug 2007 04:31:57 +0100 Subject: magpie: only force convert encoding if initial parsing failed --- magpierss/rss_fetch.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'magpierss/rss_fetch.inc') 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 -- cgit v1.2.3