diff --git a/main.py b/main.py index a07959d8..d7fbfb08 100644 --- a/main.py +++ b/main.py @@ -67,7 +67,7 @@ def save_errorlog(errorlog): def save_xml(xmlstring, outfile): with open(outfile,'w+') as xmlfile: - xmlfile.write(xmlstring) + xmlfile.write(xmlstring.encode('utf-8')) if __name__ == '__main__': AllSets = spoilers.get_allsets() #get AllSets from mtgjson