Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/lib/fileconv/dumpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def write(self, data, params, *args, **kwargs):

Character encoding for str instances, default is UTF-8.
"""
with open(self.new_file_path, "w") as f:
with open(self.new_file_path, "w", encoding="utf-8") as f:
json.dump(data, f, **params)


Expand Down Expand Up @@ -376,7 +376,7 @@ def write(self, data, params, *args, **kwargs):
Dumper (supposedly derived from yaml.BaseDumper)
You should know what you are doing when passing this.
"""
with open(self.new_file_path, "w") as f:
with open(self.new_file_path, "w", encoding="utf-8") as f:
yaml.dump(data, f, **params)


Expand Down