Skip to content

Commit

Permalink
Use UTF-8 encoding for Windows users.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillSchumacher committed Apr 10, 2023
1 parent e62a3be commit 1b128a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/file_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1b128a1

Please sign in to comment.