From 9e77c4231ccb4a23d508864e2f9505903b8039ab Mon Sep 17 00:00:00 2001 From: Someone Somewhere Date: Tue, 5 Apr 2022 14:15:30 +0300 Subject: [PATCH] Fix encoding issue --- tools/redditcrawl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/redditcrawl.py b/tools/redditcrawl.py index 17aab7d7..da41025b 100755 --- a/tools/redditcrawl.py +++ b/tools/redditcrawl.py @@ -2,8 +2,8 @@ import praw import json -outfile = open('temp_atlas.json', 'w') -failfile = open('manual_atlas.json', 'w') +outfile = open('temp_atlas.json', 'w', encoding='utf-8') +failfile = open('manual_atlas.json', 'w', encoding='utf-8') credentials = open('credentials', 'r') client_id = credentials.readline().strip(' \t\n\r') @@ -72,4 +72,4 @@ else: print("skipped "+submission.title) -print(f"\n\nSuccess: {successcount}\nFail: {failcount}\nPlease check manual_atlas.txt for failed entries to manually resolve.") \ No newline at end of file +print(f"\n\nSuccess: {successcount}\nFail: {failcount}\nPlease check manual_atlas.txt for failed entries to manually resolve.")