add explicit UTF-8 encoding
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user