We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 911cf45 commit d8329c4Copy full SHA for d8329c4
html5lib/treewalkers/lxmletree.py
@@ -15,7 +15,7 @@ def ensure_str(s):
15
elif isinstance(s, text_type):
16
return s
17
else:
18
- return s.decode("utf-8", "strict")
+ return s.decode("ascii", "strict")
19
20
21
class Root(object):
0 commit comments