>>>
>>> u"\u2702".decode()
Traceback (most recent call last):
File "", line 1, in  
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2702' in position 0: ordinal not in range(128)
>>>
>>>
>>> s=u"\u2702"
>>> str(s)
Traceback (most recent call last):
File "", line 1, in  
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2702' in position 0: ordinal not in range(128)
>>>
>>>
>>> u"\u2702".decode()
Traceback (most recent call last):
File "
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2702' in position 0: ordinal not in range(128)
>>>
>>>
>>> s=u"\u2702"
>>> str(s)
Traceback (most recent call last):
File "
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2702' in position 0: ordinal not in range(128)
>>>
>>>
 
   
No comments:
Post a Comment