Skip to content

Commit

Permalink
fix(toc.py): Use UTF-8 encoding for reading files
Browse files Browse the repository at this point in the history
Fixes #147

Signed-off-by: Stefan Schulz <[email protected]>
  • Loading branch information
Rubyfi committed Jul 16, 2024
1 parent a13f862 commit 9feba88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doxysphinx/toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _parse_template(self) -> Tuple[str, str]:
"""
# load html file as string and remove the newline chars
blueprint = self._source_dir / "index.html"
complete_html = blueprint.read_text()
complete_html = blueprint.read_text(encoding="UTF-8")
linearized_html = complete_html.replace("\n", "").replace("\r", "")

# split the html string on the content element
Expand Down

0 comments on commit 9feba88

Please sign in to comment.