use explicit utf-8 encoding when opening files in text mode
This commit is contained in:
@@ -1616,7 +1616,7 @@ class Abstract_Wallet(PrintError):
|
||||
f.write(pr.SerializeToString())
|
||||
# reload
|
||||
req = self.get_payment_request(addr, config)
|
||||
with open(os.path.join(path, key + '.json'), 'w') as f:
|
||||
with open(os.path.join(path, key + '.json'), 'w', encoding='utf-8') as f:
|
||||
f.write(json.dumps(req))
|
||||
return req
|
||||
|
||||
|
||||
Reference in New Issue
Block a user