mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-04 03:16:40 -04:00
Change default encoding
This commit is contained in:
parent
1a3789c298
commit
edf82d3d90
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue