View Single Post
Old 08-24-2011, 12:46 PM   #114
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,497
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
URLS are supposed to have all non ascii chars encoded as UTF-8 and then percent encoded, see RFC 3986

For example:

urllib.quote(u'\xe1'.encode('utf-8'))
'%C3%A1'

repr(u'\xe1'.encode('utf-8'))
'\xc3\xa1'
kovidgoyal is offline   Reply With Quote