title: Android httpclient (request) encoding problem
body: <p>Hi
  I am trying to build a little rest client in android. I simply tries to obtain an xml file which can be parsed later on. However I have some encoding problems. </p>
  
  <p>Special characters like ø and å are not recognized. The xml file uses ISO-8859-1 encoding but i cannot really figure out how to force the httpclient to use this encoding. Anyone that is able to help?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>    public class MainActivity extends Activity {
      /** Called when the activity is first created. */
      String URL = "http://konkurrence.rejseplanen.dk/bin/rest.exe"; 
  
      String result = ""; 
  
      Button btn; 
      TextView tv; 
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main); 
          tv = (TextView)findViewById(R.id.tvResponse); 
          btn = (Button)findViewById(R.id.btnMakeRequest); 
  
          btn.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  String query = "/departureBoard?id=8600626&amp;date=19.03.11&amp;time=07:02&amp;useBus=0"; 
                  callWebService(query); 
              }
          }); 
      }
  
      public void callWebService(String q){  
          HttpClient httpclient = new DefaultHttpClient();  
          HttpGet request = new HttpGet(URL + q);   
          ResponseHandler&lt;String&gt; handler = new BasicResponseHandler();  
          try {  
              result = httpclient.execute(request, handler); 
              tv.setText(result); 
          } catch (ClientProtocolException e) {  
              e.printStackTrace();  
          } catch (IOException e) {  
              e.printStackTrace();  
          }  
          httpclient.getConnectionManager().shutdown();  
          Log.i("test", result);  
      } 
  }
  </code></pre>
  
  <p>thanks in advance.
  best regards, kenneth</p>