Python 3 UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d #1

Closed
opened 2020-12-07 12:59:30 +01:00 by vri · 1 comment

I hit this error when running sphinx_weasyprint_builder on windows 10.
Solution is imho to change line 42 of weasyprint_builder.py into this:
with open(self.base_url, encoding='utf8') as htmlfile:

I hit this error when running sphinx_weasyprint_builder on windows 10. Solution is imho to change line 42 of weasyprint_builder.py into this: with open(self.base_url, encoding='utf8') as htmlfile:
kujiu closed this issue 2021-01-10 20:51:56 +01:00
Owner

Thanks for your contribution, it's now uploaded to pypi.

Have a good day !

Thanks for your contribution, it's now uploaded to pypi. Have a good day !
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: nerv-project/sphinx_weasyprint_builder#1
No description provided.