summaryrefslogtreecommitdiffstats
path: root/fetcher/feedfetcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'fetcher/feedfetcher.php')
-rw-r--r--fetcher/feedfetcher.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php
index b7ddce91a..2a7b9bc4e 100644
--- a/fetcher/feedfetcher.php
+++ b/fetcher/feedfetcher.php
@@ -132,7 +132,8 @@ class FeedFetcher implements IFeedFetcher {
// purification is done in the service layer
$body = $parsedItem->getContent();
- $body = mb_convert_encoding($body, 'HTML-ENTITIES', 'UTF-8');
+ $body = mb_convert_encoding($body, 'HTML-ENTITIES',
+ mb_detect_encoding($body));
$item->setBody($body);
// pubdate is not required. if not given use the current date