Skip to content

Commit

Permalink
Fix for writing braintree as unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
keiffster committed Dec 12, 2017
1 parent a9ac7bc commit e8d3fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/programy/parser/pattern/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def save_braintree(self, bot, clientid, filename, content):
braintree += '<aiml>\n'
braintree += self.root.to_xml(bot, clientid)
braintree += '</aiml>\n'
with open(filename, "w+") as dump_file:
with open(filename, "w+", encoding="utf-8") as dump_file:
dump_file.write(braintree)
else:
if logging.getLogger().isEnabledFor(logging.ERROR):
Expand Down

0 comments on commit e8d3fd2

Please sign in to comment.