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
|
|
@ -437,7 +437,7 @@ class List(db.Model):
|
|||
j['path'] = f.path
|
||||
break
|
||||
items.append(j)
|
||||
with open(path, 'w') as f:
|
||||
with open(path, 'w', encoding='utf-8') as f:
|
||||
json.dump(items, f, indent=4, default=_to_json, ensure_ascii=False, sort_keys=True)
|
||||
|
||||
class Metadata(db.Model):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue