Fix encoding issue

This commit is contained in:
Someone Somewhere 2022-04-05 14:15:30 +03:00
parent 445be39898
commit 9e77c4231c

View file

@ -2,8 +2,8 @@
import praw import praw
import json import json
outfile = open('temp_atlas.json', 'w') outfile = open('temp_atlas.json', 'w', encoding='utf-8')
failfile = open('manual_atlas.json', 'w') failfile = open('manual_atlas.json', 'w', encoding='utf-8')
credentials = open('credentials', 'r') credentials = open('credentials', 'r')
client_id = credentials.readline().strip(' \t\n\r') client_id = credentials.readline().strip(' \t\n\r')
@ -72,4 +72,4 @@
else: else:
print("skipped "+submission.title) print("skipped "+submission.title)
print(f"\n\nSuccess: {successcount}\nFail: {failcount}\nPlease check manual_atlas.txt for failed entries to manually resolve.") print(f"\n\nSuccess: {successcount}\nFail: {failcount}\nPlease check manual_atlas.txt for failed entries to manually resolve.")