diff --git a/plugins/lib/fileconv/dumpers.py b/plugins/lib/fileconv/dumpers.py index e6b19b00..abfe308e 100644 --- a/plugins/lib/fileconv/dumpers.py +++ b/plugins/lib/fileconv/dumpers.py @@ -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) @@ -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)