From f038522634d74b147c30c79ee835741379ffe18b Mon Sep 17 00:00:00 2001 From: tritoch Date: Tue, 13 Jun 2017 15:24:59 -0500 Subject: [PATCH] Fix XML Pretty Print --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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