Handle unicode while writing to file (Fixes #169)
This commit is contained in:
@@ -200,7 +200,7 @@ def writer(obj, path):
|
||||
elif kind == 'dict':
|
||||
obj = json.dumps(obj, indent=4)
|
||||
savefile = open(path, 'w+')
|
||||
savefile.write(obj)
|
||||
savefile.write(obj.encode('utf-8'))
|
||||
savefile.close()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user