From edf82d3d9031cc0a46d921506f12e47dcd332c57 Mon Sep 17 00:00:00 2001 From: Watchful1 Date: Mon, 16 Jan 2023 09:58:48 -0800 Subject: [PATCH] Change default encoding --- scripts/combine_folder_multiprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/combine_folder_multiprocess.py b/scripts/combine_folder_multiprocess.py index c58120c..5424cba 100644 --- a/scripts/combine_folder_multiprocess.py +++ b/scripts/combine_folder_multiprocess.py @@ -154,7 +154,7 @@ def process_file(file, queue, field, value, values, case_sensitive): if matched: if output_file is None: - output_file = open(file.output_path, 'w') + output_file = open(file.output_path, 'w', encoding="utf-8") output_file.write(line) output_file.write("\n") except (KeyError, json.JSONDecodeError) as err: