From d959f759a37a842b37a7e2d2045b47b8fd5f7fcd Mon Sep 17 00:00:00 2001 From: Stefan Schulz <5165104+Rubyfi@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:48:42 +0200 Subject: [PATCH] fix(toc.py): Use UTF-8 encoding for reading files (#148) Fixes #147 Signed-off-by: Stefan Schulz <5165104+Rubyfi@users.noreply.github.com> --- 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