Answer the question
In order to leave comments, you need to log in
Python. Characters are written to the file instead of Cyrillic. How to decode it?
An excerpt from a file into which Russian characters were written:
recipientname="Kalik Mamadho.."
tree.write(new_file_name) # Tree is a xml (ElementTree.parse(file))
with open(new_file_name, 'r') as xml_document:
xml = xml_document.read().replace('\n', '')
Answer the question
In order to leave comments, you need to log in
Answer: https://stackoverflow.com/questions/62720040/decod...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question