tweet embed: force utf-8

This commit is contained in:
Andrew Dolgov 2016-08-02 18:08:00 +03:00
parent 46506d3fd6
commit 4800746386

View file

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