title: Apache HttpClient - post request to ETools.ch with utf-8 chars in the query
body: <p>The code works fine if the query does not contain any utf-8 chars. As soon as there is one utf-8 char then ETools provides results I do not expect. For example for <code>"trees"</code> I get correct result and for <code>"bäume"</code> (german word for trees) I get strange results. It looks like that ETools receives the query as <code>"b%C3%A4ume"</code> and looks for exact that query with exact those chars and not for <code>"bäume"</code>. I think the problem may be solved if I set some header parameters but I dont know what parameters are possible there.</p>
  
  <pre class="lang-java prettyprint-override"><code>String query = "some+query+with+utf8+chars";
  
  HttpClient client = new DefaultHttpClient();
  HttpPost request = new HttpPost();
  
  List&lt;NameValuePair&gt; parameters = new ArrayList&lt;NameValuePair&gt;();
  parameters.add(new BasicNameValuePair("query", query));
  parameters.add(new BasicNameValuePair("country", "web"));
  parameters.add(new BasicNameValuePair("language", "all"));
  parameters.add(new BasicNameValuePair("dataSourceResults", String.valueOf(40)));
  parameters.add(new BasicNameValuePair("pageResults", String.valueOf(40)));
  request.setEntity(new UrlEncodedFormEntity(parameters, "UTF-8"));
  request.setHeader("Content-Type", "application/x-www-form-urlencoded");
  request.setURI("http://www.etools.ch/searchAdvancedSubmit.do?page=2");
  
  MyResponse myResponse = client.execute(request, myResponseHandler);
  
  request.reset();
  client.getConnectionManager().shutdown();
  </code></pre>