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 /articleenhancer | |
parent | 034e13ef65f4cc91edd29952e48d09930e8cb332 (diff) |
fix encoding
Diffstat (limited to 'articleenhancer')
-rw-r--r-- | articleenhancer/xpatharticleenhancer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/articleenhancer/xpatharticleenhancer.php b/articleenhancer/xpatharticleenhancer.php index 8e45636d2..23af24893 100644 --- a/articleenhancer/xpatharticleenhancer.php +++ b/articleenhancer/xpatharticleenhancer.php @@ -53,7 +53,7 @@ class XPathArticleEnhancer implements ArticleEnhancer { if(preg_match('/(?<=charset=)[^;]*/', $contentType, $matches)) { $encoding = $matches[0]; $body = mb_convert_encoding($body, 'HTML-ENTITIES', - $encoding); + strtoupper($encoding)); } $dom = new DOMDocument(); |