Skip to content

Commit a36f7f3

Browse files
committed
fix: Specify UTF8 encoding for output
Issue-26: #26
1 parent cfa5c7e commit a36f7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/griffe2md/_internal/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
def _output(text: str, to: IO | str | None = None) -> None:
2020
if isinstance(to, str):
21-
with Path(to).open("w") as output:
21+
with Path(to).open("w", encoding="utf8") as output:
2222
output.write(text)
2323
else:
2424
if to is None:

0 commit comments

Comments
 (0)