title: Trying to replicate a successful POST request with JSoup - data posted to server does not get decoded
body: <p><strong>Http request header:</strong></p>
  
  <pre><code>Host: www.mysite.com
  Content-Type: application/x-www-form-urlencoded
  Cookie: bbuserid=XXX; bbpassword=YYY; bbsessionhash=ZZZ
  Content-Length: 252
  </code></pre>
  
  <p><strong>Http request body:</strong></p>
  
  <pre><code>message=%E4%F6%F5%FC%E4%F6%F5%FC%E4%F6%F5%FC%E4%F6%F5%FC&amp;securitytoken=XXX&amp;do=postreply&amp;t=483553
  </code></pre>
  
  <p>Working fine! Data posted to server gets decoded on the other end and user sees orginal message which is <code>äöõüäöõüäöõüäöõü</code>.</p>
  
  <p>Now lets try to implement this excact example with JSoup:</p>
  
  <pre><code>//request body 
  Map&lt;String, String&gt; datamap = new HashMap&lt;String, String&gt;();
  datamap.put(Session.SESSION_SECURITYTOKEN,"XXX");
  datamap.put("message", URLEncoder.encode(finalText, "ISO-8859-1"));
  datamap.put("do", "postreply");
  datamap.put("t", "483553");
  
  //make a post
  Jsoup.connect(url)
  .header("Content-Type","application/x-www-form-urlencoded")
  .timeout(10000)
  .cookie(Session.COOKIE_HASH_KEY,session.bbsessionhash)
  .cookie(Session.COOKIE_PASSWORD_KEY,session.bbpassword)
  .cookie(Session.COOKIE_USERID_KEY,session.bbuserid)
  .data(datamap).post();
  </code></pre>
  
  <p>My message gets posted BUT it is not decoded by the server. So when user views the message he/she sees: <code>%E4%F6%F5%FC%E4%F6%F5%FC%E4%F6%F5%FC%E4%F6%F5%FC</code></p>
  
  <p>Note: I am doing the post request from Android and posting data to vBulletin forum software (replay to thread).</p>
  
  <p><strong>The problem:</strong> When I send the message with JSoup, server sees it like a plain text not a encoded text. <strong>How can I make the server to understand that the message parameter holds encoded text, not plain text?</strong></p>