title: nodeValue from DOMDocument returning weird characters in PHP
body: <p>So I'm trying to parse HTML pages and looking for paragraphs (<code>&lt;p&gt;</code>) using <code>get_elements_by_tag_name('p');</code></p>
  <p>The problem is that when I use <code>$element-&gt;nodeValue</code>, it's returning weird characters. The document is loaded first into <code>$html</code> using curl then loading it into a DOMDocument.</p>
  <p>I'm sure it has to do with charsets.</p>
  <p>Here's an example of a response: &quot;aujourdÃ¢Â€Â™hui&quot;.</p>
  <p>Thanks in advance.</p>