title: How to convert unknown/mixed encoding file to UTF-8
body: <p>I am using retrieving an XML file from a remote service which is <em>supposed</em> to be UTF-8, as the header is <code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code>.  However, certain parts of it is apparently not UTF-8, as when I load it into PHP's XMLReader extension, it throws some sort of "Not UTF-8 as expected" error when parsing over certain parts of the document (parts that look like they have been copy-pasted directly from MS Word).</p>
  
  <p>I am looking for ideas to solve this error.  Is there some program I can use to "fix" the file of any non-uft8 encodings?  A PHP solution or any other solution will do</p>