Skip to content

Commit

Permalink
docs(markdown): Provide encoding at read time
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Dec 4, 2022
1 parent 2836a7b commit 2760bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/03_markdown/01_markdown.py
Expand Up @@ -23,7 +23,7 @@
@state.change("file_name")
def update_md(file_name, **kwargs):
md_file_path = os.path.join(os.path.dirname(__file__), file_name)
with open(md_file_path) as md:
with open(md_file_path, encoding='utf-8') as md:
ctrl.md_update(md.read())


Expand Down

0 comments on commit 2760bc2

Please sign in to comment.