diff --git a/ezgg_website/components/news_post.py b/ezgg_website/components/news_post.py index 823f2b7..8f8147f 100644 --- a/ezgg_website/components/news_post.py +++ b/ezgg_website/components/news_post.py @@ -15,7 +15,7 @@ class NewsPost(rio.Component): if isinstance(article_text, str): self._article_text = article_text elif isinstance(article_text, Path): - with open(article_text, "r") as f: + with open(article_text, "r", encoding="utf-8") as f: self._article_text = f.read() def build(self) -> rio.Component: