diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-23 14:00:35 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-23 14:00:47 +0200 |
commit | 337b72287d6e7ee98c5277c6fcd6a868399e6bba (patch) | |
tree | 90b6f33d9f51c3ca4534b5627885f6a67bf86fe4 /fetcher/feedfetcher.php | |
parent | fcfea21cc9a67598d78d0adac28ec677aa41fffa (diff) |
use md5
Diffstat (limited to 'fetcher/feedfetcher.php')
-rw-r--r-- | fetcher/feedfetcher.php | 3 |
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 |