Skip to content

Commit

Permalink
Force utf-8 encodage when reading package resource
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Oct 26, 2022
1 parent c7d1c52 commit 5c169d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from importlib.resources import read_text
else:
def read_text(package, resource):
return (files(package) / resource).read_text()
return (files(package) / resource).read_text('utf-8')

import re

Expand Down

0 comments on commit 5c169d1

Please sign in to comment.