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.
|