This simply throws an error in Python3.11 (lxml 4.9.2) and works fine for Python3.9 (lxml 4.9.2)
from lxml import etree root = etree.fromstring("<p>🐻</p>")
This simply throws an error in Python3.11 (lxml 4.9.2) and works fine for Python3.9 (lxml 4.9.2)
from lxml import etree g("<p>🐻 </p>")
root = etree.fromstrin