소스 검색

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

Masen Furer 1 년 전
부모
커밋
269334014d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      reflex/.templates/apps/base/code/pages/index.py

+ 1 - 1
reflex/.templates/apps/base/code/pages/index.py

@@ -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)