-
-
Save mgax/f6a3edc5b4883b3377e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from lxml.etree import fromstring | |
>>> fromstring('<s/>') | |
<Element s at 0x10cc34050> | |
>>> fromstring('<ș/>') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0219' in position 9: ordinal not in range(128) | |
>>> fromstring(u'<ș/>') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0219' in position 9: ordinal not in range(128) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment