Skip to content

Commit

Permalink
Merge pull request #114 from jaw/python_read_text_utf8
Browse files Browse the repository at this point in the history
Ensure HTML is read as UTF-8
  • Loading branch information
mb-emag authored Oct 12, 2023
2 parents 66fe695 + 30fe129 commit acbb737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ Please keep the list sorted.
* Stefan Schulz - <stefan.schulz@itemis.com>
* Stream HPC B.V.
* Gergely Meszaros <gergely@streamhpc.com>
* Klarälvdalens Datakonsult AB (KDAB)
* Jonatan Wallmander <jonatan.wallmander@kdab.com>
2 changes: 1 addition & 1 deletion doxysphinx/html_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def parse(self, file: Path) -> HtmlParseResult:
:return: The result of the parsing
:rtype: ParseResult
"""
buffer = file.read_text()
buffer = file.read_text(encoding="utf-8")
tree = etree.document_fromstring(buffer).getroottree()

meta_title, project, title = self._read_project_and_title(buffer, file)
Expand Down

0 comments on commit acbb737

Please sign in to comment.