diff --git a/auto-update-episodes/auto-update-episodes.py b/auto-update-episodes/auto-update-episodes.py index e87a5ad..d7c1894 100644 --- a/auto-update-episodes/auto-update-episodes.py +++ b/auto-update-episodes/auto-update-episodes.py @@ -29,7 +29,7 @@ except: pass - with open(DATA_FILE, 'r') as file: + with open(DATA_FILE, 'r', encoding='utf-8') as file: data = file.readlines() success_count = 0 @@ -66,7 +66,7 @@ # Remove the line from the remaining data and update the file remaining_data.remove(line) - with open(DATA_FILE, 'w') as file: + with open(DATA_FILE, 'w', encoding='utf-8') as file: for line in remaining_data: file.write(line)