Skip to content

Commit

Permalink
code.core>modify.style: add support for utf-8 encoding in output json…
Browse files Browse the repository at this point in the history
…lines file
  • Loading branch information
pwnfan committed May 19, 2023
1 parent 54a19bc commit c07d897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagmark/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def dump_to_json_lines(
if len(self.tagmark_items) > 0:
with open(output_path, "w") as f:
f.writelines(
f"{json.dumps(_item.to_dict(keep_empty_keys=keep_empty_keys))}\n"
f"{json.dumps(obj=_item.to_dict(keep_empty_keys=keep_empty_keys), ensure_ascii=False)}\n"
for _item in self.tagmark_items
if (
(
Expand Down

0 comments on commit c07d897

Please sign in to comment.