Skip to content

Commit

Permalink
Use utf-8 for loading JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
remyroy committed Apr 12, 2024
1 parent b91af50 commit 1eaf14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staking_deposit/utils/intl.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def load_text(params: List[str], file_path: str='', func: str='', lang: str='')

try:
# browse json until text is found
with open(json_path) as f:
with open(json_path, encoding='utf-8') as f:
text_dict = json.load(f)
return _get_from_dict(text_dict, [func] + params)
except (KeyError, FileNotFoundError):
Expand Down

0 comments on commit 1eaf14f

Please sign in to comment.