You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I would expect to be able to also do dns.name.from_unicode(u'\255') and get the same result. But instead:
dns.name.from_unicode(u'\255')
Traceback (most recent call last):
File "", line 1, in
File ".../lib/python2.7/site-packages/dns/name.py", line 585, in from_unicode
label += chr(total)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
I think changing the line:
label += chr(total)
to:
label += unichr(total)
is probably a fix.
The text was updated successfully, but these errors were encountered:
I can do:
So I would expect to be able to also do dns.name.from_unicode(u'\255') and get the same result. But instead:
I think changing the line:
label += chr(total)
to:
label += unichr(total)
is probably a fix.
The text was updated successfully, but these errors were encountered: