Encoding in XML declaration python

Posted by Nims on Stack Overflow See other posts from Stack Overflow or by Nims
Published on 2010-04-08T04:44:38Z Indexed on 2010/04/08 4:53 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

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:

<?xml version="1.0" encoding="UTF-8"?> 

© Stack Overflow or respective owner

Related posts about Xml

Related posts about declaration