mwmitchell/rsolr — pull request #34 by lda (2011-12-20 03:16:59+00:00)
Title: pass UTF-8 encoding for urlencoded data

Hi, Matt
I found one issue related to queries posted to "tomcatted" solr. For example:

```ruby
solr.post 'select', :data => {:q => 'тест'}
```
will produce

```ruby
{"responseHeader"=>{"status"=>0, "QTime"=>1, "params"=>{"q"=>"Ñ\u0082ÐµÑ\u0081Ñ\u0082", "wt"=>"ruby"}}, "response"=>{"numFound"=>0, "start"=>0, "docs"=>[]}}
```

and you can see that tomcat broke `q` parameter

That is because tomcat by default assumes that posted data encoded in ASCII, so posting search queries with UTF-8 chars breaks results.

This issue is not related to Jetty deployments, because Jetty assumes that UTF-8 encoding by default. So this fix will not break any existing installations.