tweet embed: force utf-8

This commit is contained in:
Andrew Dolgov 2016-08-02 18:08:00 +03:00
parent 46506d3fd6
commit 4800746386
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class Af_RedditImgur extends Plugin {
if ($oembed_result && isset($oembed_result["html"])) { if ($oembed_result && isset($oembed_result["html"])) {
$tmp = new DOMDocument(); $tmp = new DOMDocument();
if ($tmp->loadHTML($oembed_result["html"])) { if ($tmp->loadHTML('<?xml encoding="utf-8" ?>' . $oembed_result["html"])) {
$p = $doc->createElement("p"); $p = $doc->createElement("p");
$p->appendChild($doc->importNode( $p->appendChild($doc->importNode(