IllegalArgumentException while initiating a call passing # character
<p>I am trying to initiate a call by passing '#' character with numbers. But when i pass that uri an exception is occured as shown below</p>

<p>01-21 10:36:21.247: WARN/System.err(383): java.lang.IllegalArgumentException: Illegal character in fragment at index 104: </p>

<p>My code is</p>

<pre><code>      public String getHttpConnectionToServer(String uri, String proxyIP,
               Integer port, String debugMode) {

         HttpGet httppost = new HttpGet(uri);
    HttpResponse response = client.execute(httppost);
    HttpEntity entity = response.getEntity();
    InputStream is = entity.getContent();
    BufferedReader reader = new BufferedReader(new InputStreamReader(
        is, "iso-8859-1"), 8);

    StringBuilder sb = new StringBuilder();
}


Exception is thrown at this line of code : HttpGet httppost = new HttpGet(uri);
</code></pre>

<p>How can i resolve that?? Please HElp</p>
