Skip to content

Commit

Permalink
Exporting MD and HTML in UTF-8
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Lysak <[email protected]>
  • Loading branch information
Maksym Lysak committed Dec 19, 2024
1 parent 4e0cb3f commit 8dc8393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docling_core/types/doc/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ def save_as_markdown(
page_no=page_no,
)

with open(filename, "w") as fw:
with open(filename, "w", encoding="utf-8") as fw:
fw.write(md_out)

def export_to_markdown( # noqa: C901
Expand Down Expand Up @@ -2081,7 +2081,7 @@ def save_as_html(
html_head=html_head,
)

with open(filename, "w") as fw:
with open(filename, "w", encoding="utf-8") as fw:
fw.write(html_out)

def _get_output_paths(
Expand Down

0 comments on commit 8dc8393

Please sign in to comment.