darwin still does not default to utf-8, set encoding
This commit is contained in:
parent
417195cfd1
commit
72002fc4a1
3 changed files with 4 additions and 4 deletions
|
|
@ -17,8 +17,8 @@ class pdict(dict):
|
|||
|
||||
def _save(self):
|
||||
if self._path:
|
||||
with open(self._path, 'w') as fd:
|
||||
json.dump(self, fd, indent=4, sort_keys=True)
|
||||
with open(self._path, 'w', encoding='utf-8') as fd:
|
||||
json.dump(self, fd, indent=4, sort_keys=True, ensure_ascii=False)
|
||||
|
||||
def get(self, key, default=None):
|
||||
if default == None and self._defaults:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue