title: XML is not read correctly (ISO-8859-1 / UTF-8)
body: <p>I have this little piece of code, reading a very easy affiliate XML.
  The URL is <a href="http://pf.tradetracker.net/?aid=193104&amp;encoding=iso-8859-1&amp;type=xml-v2&amp;fid=556821&amp;r=tt-canvasholidays.nl&amp;categoryType=2&amp;additionalType=2" rel="nofollow">http://pf.tradetracker.net/?aid=193104&amp;encoding=iso-8859-1&amp;type=xml-v2&amp;fid=556821&amp;r=tt-canvasholidays.nl&amp;categoryType=2&amp;additionalType=2</a></p>
  
  <p>When I try to put this XML in an array and process it with some basic functions, it seems that special characters are being replaced by encoded ones.</p>
  
  <p>For example the word <code>Château</code> in the original XML is replaced by <code>ChÃ¢teau</code> when I read the XML in my php as follows:</p>
  
  <pre><code>$xml = simplexml_load_file($file);
  foreach($xml-&gt;product as $child) {
    $name = mysql_real_escape_string($child-&gt;name);
    }
  </code></pre>
  
  <p>Had programmed an escape function that replaces most of the <code>Ãx</code>-things with the correct characters, but the "<code>Ã¢</code>" string seems to be not accepted in the php code.</p>
  
  <p>I have read some articles about wrong database conversion, but I'm just reading and interpreting it from the source XML and in the <code>simplexml_load_file</code> is no encoding specified.</p>
  
  <p>O btw, I'm not a very experienced php programmer, but just stuck to Wordpress in combination with proven technologies for affiliate productfeeds, until some French data was coming through :)</p>
  
  <p>Hope you can help... Thanks in advance... </p>