M
M
MalikDeveloper20772020-07-03 20:27:26
Python
MalikDeveloper2077, 2020-07-03 20:27:26

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', '')


How to decode this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MalikDeveloper2077, 2020-07-03
@MalikDeveloper2077

Answer: https://stackoverflow.com/questions/62720040/decod...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question