title: SimpleXMLElement and encoding problems
body: <p>I load a RSS (XML) document into an SimpleXmlElement the following way:</p>
  
  <pre><code>$x = new SimpleXmlElement($content);
  </code></pre>
  
  <p>I'we also tested with:</p>
  
  <pre><code>$x = simplexml_load_string($content);
  </code></pre>
  
  <p>When I print out the $content the encoding is correct but when I load it into an SimpleXmlElement and print it out, I get things like;  'vÃ¦re' instead of 'være'.</p>
  
  <p>Any idea how to fix this?</p>
  
  <p>Also, extra question, the SimpleXmlElement seems slow, any way to speed it up?</p>
  
  <p><strong>[Edit]</strong></p>
  
  <p>RSS source: <a href="http://www.vg.no/rss/nyfront.php?frontId=1" rel="nofollow">http://www.vg.no/rss/nyfront.php?frontId=1</a></p>
  
  <p>And it seems that it was something else that was my bottle neck (the foreach running trough all of my RSS news entries).</p>