diff --git a/CHANGES b/CHANGES index cde0514..26d9903 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,11 @@ Changes ======= +0.1.3 (*2021-01-10*) +==================== + +- Fix decode error on Windows 10 + 0.1.2 (*2020-07-08*) ==================== diff --git a/setup.py b/setup.py index 612bba5..ac37768 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ with open("README.rst", "r") as fh: setup( name="sphinx_weasyprint_builder", - version="0.1.2", + version="0.1.3", url="https://procrastinator.nerv-project.eu/nerv-project/sphinx_weasyprint_builder", license="EUPL 1.2", author="Kujiu", diff --git a/sphinx_weasyprint_builder/__init__.py b/sphinx_weasyprint_builder/__init__.py index 79ddb8e..7f54c33 100644 --- a/sphinx_weasyprint_builder/__init__.py +++ b/sphinx_weasyprint_builder/__init__.py @@ -6,7 +6,7 @@ from sphinx.application import Sphinx from sphinx.util.osutil import make_filename -version = (0, 1, 2) +version = (0, 1, 3) def setup(app: Sphinx) -> Dict[str, Any]: diff --git a/sphinx_weasyprint_builder/weasyprint_builder.py b/sphinx_weasyprint_builder/weasyprint_builder.py index ec73758..911a3d6 100644 --- a/sphinx_weasyprint_builder/weasyprint_builder.py +++ b/sphinx_weasyprint_builder/weasyprint_builder.py @@ -39,7 +39,7 @@ class PdfGenerator: header_selector: str ) -> None: self.base_url = base_url - with open(self.base_url) as htmlfile: + with open(self.base_url, encoding='utf8') as htmlfile: self.main_html = htmlfile.read() self.footer_html = None