Skip to content

Instantly share code, notes, and snippets.

@judy2k
Forked from anonymous/uc.py
Created October 15, 2014 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judy2k/08b28fa2b739b9e89aec to your computer and use it in GitHub Desktop.
Save judy2k/08b28fa2b739b9e89aec to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "./uc.py", line 7, in <module>
u += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 1: ordinal not in range(128)
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
u = u''
b = '\x80'
u += '/' + b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment