 <p>The DOM cannot recognize the HTML's encoding. You can try something like: </p> <pre><code>$doc = new DOMDocument(); $doc-&gt;loadHTML('&lt;?xml encoding="UTF-8"&gt;' . $html); // taken from http://php.net/manual/en/domdocument.loadhtml.php#95251 </code></pre>