title: How to set output encoding of simplexml_load_string PHP function
body: <p>I am parsing CP1250 encoded string with <code>simplexml_load_string</code>. So, I state it at string beginning by <code>&lt;?xml version="1.0" encoding="windows-1250"?&gt;</code>. Unfortunately, all nodes are UTF8 encoded in <code>simplexml_load_string</code> output.</p>
  
  <p>Is there a way, how to specify output encoding as well or do I have to use iconv whenever using the output?</p>