title: Encode params used within a post
body: <p>I need to encode the params to ISOLatin which i intend to post to the site. I'm using org.apache.http. libraries. My code looks like follows:</p>
  
  <pre><code>HttpClient client = new DefaultHttpClient();
  
  HttpPost post = new HttpPost("www.foobar.bar");
  post.setHeader("Content-Type", "application/x-www-form-urlencoded");           
  HttpParams params = new BasicHttpParams();
  
  params.setParameter("action", "find");
  params.setParameter("what", "somebody");
  
  post.setParams(params);
  
  HttpResponse response2 = httpClient.execute(post);
  </code></pre>
  
  <p>Thank you!</p>