We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfefb36 + 1ef5b51 commit 4521ecbCopy full SHA for 4521ecb
examples/simple.py
@@ -28,7 +28,7 @@ async def on_mount(self, event: events.Mount) -> None:
28
await self.view.dock(body, edge="right")
29
30
async def get_markdown(filename: str) -> None:
31
- with open(filename, "rt") as fh:
+ with open(filename, "r", encoding="utf8") as fh:
32
readme = Markdown(fh.read(), hyperlinks=True)
33
await body.update(readme)
34
0 commit comments