Use UTF-8 encoding for Windows users.

pull/745/head
BillSchumacher 2023-04-10 18:50:54 -05:00
parent e62a3be294
commit 1b128a1ef0
No known key found for this signature in database
GPG Key ID: 1133789BDD03E12A
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def read_file(filename):
"""Read a file and return the contents"""
try:
filepath = safe_join(working_directory, filename)
with open(filepath, "r") as f:
with open(filepath, "r", encoding='utf-8') as f:
content = f.read()
return content
except Exception as e: