diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-22 14:26:43 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-22 14:26:43 +0200 |
commit | 6e09da89790f631f220484c098ac7857deccbcb4 (patch) | |
tree | e68d3561f5c21e09287e5693b20ab9e6e8ab656c /fetcher/feedfetcher.php | |
parent | 034e13ef65f4cc91edd29952e48d09930e8cb332 (diff) |
fix encoding
Diffstat (limited to 'fetcher/feedfetcher.php')
-rw-r--r-- | fetcher/feedfetcher.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fetcher/feedfetcher.php b/fetcher/feedfetcher.php index 7cd439669..4efe0215c 100644 --- a/fetcher/feedfetcher.php +++ b/fetcher/feedfetcher.php @@ -129,7 +129,9 @@ class FeedFetcher implements IFeedFetcher { $item->setGuid($guid); // purification is done in the service layer - $item->setBody($parsedItem->getContent()); + $body = $parsedItem->getContent(); + $body = mb_convert_encoding($body, 'HTML-ENTITIES', 'UTF-8'); + $item->setBody($body); // pubdate is not required. if not given use the current date $date = $parsedItem->getDate(); |