annotate paste/paste.20889 @ 11258:edaf8efd6e21

<oerjan> learn This is something people on the channel like to talk about. We\'re often unsure what this is, though.
author HackBot
date Sat, 09 Dec 2017 11:45:07 +0000
parents 92d907abbd61
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8569
92d907abbd61 <xfix> ` unidecode $\'\\x80\\xAE\' |& paste
HackBot
parents:
diff changeset
1 Traceback (most recent call last):
92d907abbd61 <xfix> ` unidecode $\'\\x80\\xAE\' |& paste
HackBot
parents:
diff changeset
2 File "/hackenv/bin/unidecode", line 4, in <module>
92d907abbd61 <xfix> ` unidecode $\'\\x80\\xAE\' |& paste
HackBot
parents:
diff changeset
3 s = u" ".join("[U+{0:04X} {1}]".format(ord(c), unicodedata.name(c, "DUNNO")) for c in " ".join(sys.argv[1:]).decode("utf-8")).encode("utf-8")
92d907abbd61 <xfix> ` unidecode $\'\\x80\\xAE\' |& paste
HackBot
parents:
diff changeset
4 File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
92d907abbd61 <xfix> ` unidecode $\'\\x80\\xAE\' |& paste
HackBot
parents:
diff changeset
5 return codecs.utf_8_decode(input, errors, True)
92d907abbd61 <xfix> ` unidecode $\'\\x80\\xAE\' |& paste
HackBot
parents:
diff changeset
6 UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: invalid start byte