You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Embedly client fails on certain URLs with KeyError #24
Python 2's quote() is tripping up on the em dash in that url. It will work if you don't use a unicode string. (Python 3 doesn't have such unicode issues.)
Activity
joncotton commentedon Dec 31, 2014
Python 2's
quote()is tripping up on the em dash in that url. It will work if you don't use a unicode string. (Python 3 doesn't have such unicode issues.)lsemel commentedon Dec 31, 2014
Since that's not obvious it might be useful if the library checked if the string is a unicode and converted it to whatever encoding it needs.
mdrajibulislam commentedon Jan 9, 2018
add encode('utf8')
urllib.quote('-'.encode('utf8'))