Closed sp-oxford closed 5 years ago
test to correctly encode £ and ’
from lxml import etree b = '£’' p =etree.HTMLParser(encoding='utf-8') h = etree.fromstring(b , p) etree.tostring(h).decode()
test to correctly encode £ and ’