Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. >>> x = 'é'
  2. >>> x = unicode(x.encode('utf-8'))
  3. Traceback (most recent call last):
  4. File "<stdin>", line 1, in <module>
  5. UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement