Skip to content

Commit

Permalink
fix: read as utf8, since on windows this is not the default
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Feb 19, 2024
1 parent 0881de1 commit 03cbc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipyreact/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ def define_module(name, module: Union[str, Path]):
The module code to register
"""
_standard_dependencies.append(name)
return Module(code=module if not isinstance(module, Path) else module.read_text(), name=name)
return Module(code=module if not isinstance(module, Path) else module.read_text(encoding="utf8"), name=name)

0 comments on commit 03cbc90

Please sign in to comment.