Skip to content

Commit

Permalink
Merge pull request #107 from Atem18/fix-106
Browse files Browse the repository at this point in the history
Force encoding for Windows
  • Loading branch information
Atem Serem authored Jun 24, 2023
2 parents 21cb15c + eb6b0c3 commit cfa7217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isocodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ISO:
def __init__(self, iso_key: str) -> None:
self.iso_key: str = iso_key
with open(
f"{BASE_DIR}/share/iso-codes/json/iso_{self.iso_key}.json"
f"{BASE_DIR}/share/iso-codes/json/iso_{self.iso_key}.json", encoding="utf-8"
) as iso_file:
self.data: List[Dict] = json.load(iso_file)[self.iso_key]

Expand Down

0 comments on commit cfa7217

Please sign in to comment.