title: "Illegal Characters" in URL for HttpGet in Android get double-encoded
body: <p>I am trying to find a solution to this the whole evening now...</p>
  
  <p>I write an app which requests data from a web server. The Server answers in JSON format.
  Everything works well except when I enter a umlaut like ä into my App.</p>
  
  <p>In the following I assume the request URL is <a href="http://example.com/?q=" rel="nofollow">http://example.com/?q=</a> and I am searching for "Jäger"</p>
  
  <p>The correct call would then be h++p://example.com/?q=J%C3%A4ger
  (Sorry for plus-signs but the spam protection doesnt let me post it correctly.)</p>
  
  <p>So my problem is now:</p>
  
  <p>When I give my URL String encoded or unencoded over to HttpGet it will always result in a doublee-encoded URL.</p>
  
  <p>The Request to my Server is then <a href="http://example.com/?q=J%25C3%25A4ger" rel="nofollow">http://example.com/?q=J%25C3%25A4ger</a> (It encodes the percent signs)
  which leads to the server searching in database for J%C3%A4ger what is obviously wrong.</p>
  
  <p>So my question is how can I achive that if the user enters "Jäger" my app calls the correctly encoded URL?</p>
  
  <p>Thanks for any help!</p>
  
  <p>Here is the currently used code... Ist probably the worst possible idea I had...</p>
  
  <pre><code>URI url = new URI("http", "//example.com/?q=" + ((EditText)findViewById(R.id.input)).getText().toString(), null);
  Log.v("MyLogTag", "API Request: " +  url);
  HttpGet httpGetRequest = new HttpGet(url);
  
  // Execute the request in the client
  HttpResponse httpResponse;
  httpResponse = defaultClient.execute(httpGetRequest);
  </code></pre>