Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raw_query turns params into unicode, but urllib in python 2.x doesn't actually handle it #15

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

raw_query() turns all it's parameters into unicode objects, and then calls 
urllib.urlencode(), which can't really handle unicode in python 2.x, so it 
just turns non-ascii into ?'s. This makes it impossible to hand non-ascii to 
solr queries. If you encode to utf-8 before passing it to raw_query, the 
unicode() constructor throws an exception.

query() doesn't do this to its extra parameters, so to me it seems that 
raw_query shouldn't either. Patch attached.

Original issue reported on code.google.com by realy...@gmail.com on 19 Jan 2010 at 10:04

Attachments:

@GoogleCodeExporter
Copy link
Author

Applied in r54 (thanks!)

Original comment by ed.summers on 7 Feb 2010 at 9:19

  • Changed state: Closed

@GoogleCodeExporter
Copy link
Author

Original comment by ed.summers on 7 Feb 2010 at 9:28

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant