diff --git a/getpy.py b/getpy.py index 4dacead..98dd4da 100644 --- a/getpy.py +++ b/getpy.py @@ -75,7 +75,7 @@ def get_all(self): if not file: return - xml_content = open(file, "r").read() + xml_content = open(file, "r", encoding="utf-8").read() xml_tree = bs(xml_content, features = "xml")