base template: read README as utf-8 (#2064)

This commit is contained in:
Masen Furer 2023-10-27 16:50:39 -07:00 committed by GitHub
parent d5c7cedf31
commit 269334014d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,6 @@ def index() -> rx.Component:
Returns:
The UI for the home page.
"""
with open("README.md") as readme:
with open("README.md", encoding="utf-8") as readme:
content = readme.read()
return rx.markdown(content, component_map=styles.markdown_style)