title: Error: "Input is not proper UTF-8, indicate encoding !" using PHP's simplexml_load_string
body: <p>I'm getting the error:</p>
  
  <p><code>parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xED 0x6E 0x2C 0x20</code></p>
  
  <p>When trying to process an XML response using <code>simplexml_load_string</code> from a 3rd party source. The raw XML response does declare the content type:</p>
  
  <p><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code></p>
  
  <p>Yet it seems that the XML is not really UTF-8. The langauge of the XML content is Spanish and contain words like <code>Dublín</code> in the XML.</p>
  
  <p>I'm unable to get the 3rd party to sort out their XML.</p>
  
  <p>How can I pre-process the XML and fix the encoding incompatibilities?</p>
  
  <p>Is there a way to detect the correct encoding for a XML file?</p>