add explicit UTF-8 encoding

This commit is contained in:
svlandeg
2025-11-03 21:27:12 +01:00
parent a83646e098
commit c72b8b2309
8 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class CustomJSON(Task):
print("-" * 80)
else:
with open(filepath, 'r') as f:
with open(filepath, 'r', encoding='utf-8') as f:
for line in f:
line = line.strip()
if not line: # skip empty lines