title: DOM object - special characters will not shown correctly
body: <p>I have the following php code:</p>
  
  <pre><code>$html = '&lt;table&gt;
     &lt;tr&gt;
        &lt;td data-label="Date"&gt;übermittelt&lt;/td&gt;
        &lt;td data-label="Location"&gt;xxx&lt;/td&gt;
    &lt;/tr&gt;
     &lt;tr&gt;
        &lt;td data-label="Date"&gt;xD2&lt;/td&gt;
        &lt;td data-label="Location"&gt;xxx&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;';
  $dom = new DOMDocument();
  $dom-&gt;loadHTML($html);
  
  echo $html; // NO PROBLEM WITH SPECIAL CHARACTERS 
  
  $nodes = $dom-&gt;getElementsByTagName('td');
  echo $nodes-&gt;item(0)-&gt;nodeValue; // PROBLEM WITH SPECIAL CHARACTERS 
  </code></pre>
  
  <p>My Problem is, that my last echo shows the result like this:</p>
  
  <pre><code>Ã¼bermittelt
  </code></pre>
  
  <p>The <code>echo $html</code> shows the result correctly like this:</p>
  
  <pre><code>übermittelt
  </code></pre>
  
  <p>What can I do to solve this issue?</p>