changeset 8569:92d907abbd61

<xfix> ` unidecode $\'\\x80\\xAE\' |& paste
author HackBot
date Wed, 22 Jun 2016 20:34:03 +0000
parents 437be478cb3f
children 78f941d17754
files paste/paste.20889
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/paste/paste.20889	Wed Jun 22 20:34:03 2016 +0000
@@ -0,0 +1,6 @@
+Traceback (most recent call last):
+  File "/hackenv/bin/unidecode", line 4, in <module>
+    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")
+  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
+    return codecs.utf_8_decode(input, errors, True)
+UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: invalid start byte