View Single Post
Old 08-22-2011, 06:06 PM   #102
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Thx for your patience Kovid. I'm trying what you suggest, but still no joy. The problem is that I have the "query" part from urlsplit, which will look like this:

'q="Abraham, Daniel"+"An Autumn War"'

Now if I do as you suggest and use quote(parts[3].encode(encoding, 'ignore')) that will turn into something like this:
'q%3D%22Abraham%2C%20Daniel%22%2B%22An%20Autumn%20 War%22'

So it is encoding things like the = and + signs.
kiwidude is offline   Reply With Quote