title: Android http post with special character
body: <p>my php-site is echoing "här är du/x vår i sikte" which is shown as "här är du/x vår i sikte" in my chrome browser. </p>
  
  <p>But when I read it with httppost in my java/android app all the special characters (åäö) is shown as a questionmark. My webhosting service uses UtF-8.
  Is there a way to convert my string? </p>
  
  <p>Here is my code:</p>
  
  <pre><code>StringBuffer response = new StringBuffer();
  try {
      // Create a new HTTP Client
      DefaultHttpClient defaultClient = new DefaultHttpClient();
      // Setup the get request
      HttpPost post = new HttpPost("my.php");
      try {
          post.setHeader("Content-Type",
                  "application/x-www-form-urlencoded;charset=UTF-8");
  
          MultipartEntityBuilder builder = MultipartEntityBuilder
                  .create();
          builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
  
          final HttpEntity entity = builder.build();
          post.setEntity((HttpEntity) entity);
  
          //builder.addTextBody("rubrik_nr", all_rubrik, ContentType.TEXT_PLAIN);     
          HttpResponse resp = defaultClient.execute(post);
      }catch(Exception E){
  
      }
      // Execute the request in the client
      HttpResponse httpResponse = defaultClient
              .execute(post);
  
      BufferedReader in = new BufferedReader(new InputStreamReader(
              httpResponse.getEntity().getContent(),"UTF-8"));
      String inputLine;
  
  while ((inputLine = in.readLine()) != null) {
      response.append(inputLine);
  }
  in.close();
  Log.d("DEBUG", "response: " + response.toString());
  
  
  } catch (IOException e) {
  Log.d("DEBUG", "j " + response.toString());
  e.printStackTrace();
  }
  
  return response.toString();
  }
  </code></pre>