title: Encoding in XML declaration python
body: <p>I have created an XML file using python. But the XML declaration has only version info. How can I include encoding with XML declaration like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  </code></pre>