Skip to content

Commit

Permalink
Force UTF-8 for one more test document
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Jan 4, 2024
1 parent c181fac commit 4925fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_unicode(assert_pixels_equal, tmp_path):
<link rel=stylesheet href="{ensure_url(str(stylesheet))}">
<p><img src="{ensure_url(str(image))}"> {text}</p>
'''
html.write_text(html_content)
html.write_text(html_content, 'utf-8')

document = FakeHTML(html, encoding='utf-8')
width, height, lines = document_to_pixels(document)
Expand Down

0 comments on commit 4925fbb

Please sign in to comment.