Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
deleted 36 characters in body
Source Link
Michael Petrotta
  • 61.1k
  • 27
  • 153
  • 181

I have created an XML file using python. But the XML declaration has only version info. How I can I include encoding with XML declaration like,:

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

Thanks in Advance...

I have created an XML file using python. But the XML declaration has only version info. How I can include encoding with XML declaration like,

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

Thanks in Advance...

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"?> 
Source Link
Nims
  • 131
  • 2
  • 2
  • 4

Encoding in XML declaration python

I have created an XML file using python. But the XML declaration has only version info. How I can include encoding with XML declaration like,

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

Thanks in Advance...