Skip to content

Commit

Permalink
Bugfix: specify utf-8 encoding for windows compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriedy committed Aug 25, 2023
1 parent 0eb68e0 commit 1c41d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/st_pages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _add_page_title(
@cache_resource
def get_icons() -> dict[str, str]:
emoji_path = Path(__file__).parent / "emoji.json"
return json.loads(emoji_path.read_text())
return json.loads(emoji_path.read_text(encoding="utf-8"))


def translate_icon(icon: str) -> str:
Expand Down

0 comments on commit 1c41d5b

Please sign in to comment.