X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Storage%2Fbkmk_stjson.py;h=6053bd1d360f0fda72991ab53b360406df6beba1;hb=HEAD;hp=9f7fed78202d319658aa199047069f979a8c18e0;hpb=9e2bf3eaee5a8ee84c61ee5eac9c55090d45f63f;p=bookmarks_db.git diff --git a/Storage/bkmk_stjson.py b/Storage/bkmk_stjson.py index 9f7fed7..1d32fdc 100644 --- a/Storage/bkmk_stjson.py +++ b/Storage/bkmk_stjson.py @@ -91,13 +91,13 @@ class storage_json(Walker): def store(self, root_folder): root_folder.walk_depth(self) - outfile = open(self.filename, 'wt') + outfile = open(self.filename, 'wt', encoding='utf-8') json.dump(self.dict, outfile) outfile.close() del self.dict def load(self): - infile = open(self.filename, 'rt') + infile = open(self.filename, 'rt', encoding='utf-8') bkmk_s = infile.read() infile.close()