We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454bc6d commit 57f22bfCopy full SHA for 57f22bf
mermaid/_main.py
@@ -30,9 +30,9 @@ def _make_request_to_mermaid(self) -> None:
30
self._diagram)
31
32
def to_svg(self, path: Union[str, Path]) -> None:
33
- with open(path, 'w') as file:
+ with open(path, 'w', encoding='utf-8') as file:
34
file.write(self.svg_response.text)
35
36
def to_png(self, path: Union[str, Path]) -> None:
37
38
file.write(self.img_response.text)
0 commit comments