From 6e09da89790f631f220484c098ac7857deccbcb4 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 22 Oct 2014 14:26:43 +0200 Subject: fix encoding --- articleenhancer/xpatharticleenhancer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'articleenhancer') 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(); -- cgit v1.2.3