From ed4ca7fd0bc6741c7c2392e14be95b3cd2191a18 Mon Sep 17 00:00:00 2001 From: joyqi Date: Wed, 27 Nov 2013 12:01:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=84=E8=AE=BA=E4=B9=B1?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Typecho/Common.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index eb766d8e..4c964c80 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -578,9 +578,12 @@ EOF; if (empty($dom)) { $dom = new DOMDocument('1.0', self::$charset); + $dom->encoding = self::$charset; $dom->xmlStandalone = false; } - @$dom->loadHTML('' . $html); + @$dom->loadHTML('' + . '' + . $html . ''); foreach($dom->getElementsByTagName('*') as $node){ $tagName = strtolower($node->tagName);