From 6abf943fd31a851d7147c6c14d4dc51dbdd95ae4 Mon Sep 17 00:00:00 2001 From: Stefan Schulz <5165104+Rubyfi@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:16:01 +0200 Subject: [PATCH] fix(toc.py): Use UTF-8 encoding for reading files Fixes #147 --- doxysphinx/toc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doxysphinx/toc.py b/doxysphinx/toc.py index b3a3a82..2fd8cf5 100644 --- a/doxysphinx/toc.py +++ b/doxysphinx/toc.py @@ -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