Save json config as utf8
This commit is contained in:
parent
490ae12128
commit
498f71a21b
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ class MuJsonLoader(object):
|
||||||
def save(self, path):
|
def save(self, path):
|
||||||
if self.json:
|
if self.json:
|
||||||
output = json.dumps(self.json, sort_keys=True, indent=4, separators=(',', ': '))
|
output = json.dumps(self.json, sort_keys=True, indent=4, separators=(',', ': '))
|
||||||
with open(path, 'w') as f:
|
with open(path, 'wb') as f:
|
||||||
f.write(output)
|
f.write(output.encode('utf8'))
|
||||||
|
|
||||||
|
|
||||||
class MuMgr(object):
|
class MuMgr(object):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue