how to deal with xml parsing for invalid character use in URL for getting result
<p>i am able to do xml parsing for valid character but when i pass invalid character from my URL string then there no result found but when i pass that web service url from my browser then result is found.so i think problem in parsing for invalid character for doing sax xml parsing ,so how to overcome from this problem ,means how to deal with invalid character means in url <strong><a href="http://www.arteonline.mobi/iphone/output.php?st=&amp;ct=&amp;type=Cl%C3%ADnicas%20y%20Talleres&amp;neigh=" rel="nofollow">http://www.arteonline.mobi/iphone/output.php?st=&amp;ct=&amp;type=Clínicas%20y%20Talleres&amp;neigh=</a></strong><br>
for type attribute i pass  type=Clínicas where 3rd character is not an English alphabet ,its in Spanish so how to deal with this Spanish </p>

<p>character. my code is below....</p>

<pre><code>                  @Override
        protected Boolean doInBackground(String... args) {
              try{ 
                  try {



                     String temp = "http://www.arteonline.mobi/iphone/output.php?st="+filter.stateselected+"&amp;ct="+filter.cityselected+"&amp;type="+filter.typeselected+"&amp;neigh="+filter.neighbourselected+"";
                        //String temp = "http://www.arteonline.mobi/iphone/output.php?st=&amp;ct=&amp;type=Clínicas%20y%20Talleres&amp;neigh=";

                      temp = temp.replaceAll(" " ,"%20");
                      //  temp= temp.replaceAll("í" ,"í");
                        SAXParserFactory spf = SAXParserFactory.newInstance();
                        SAXParser sp = spf.newSAXParser();
                        XMLReader xr = sp.getXMLReader();
                        Log.i("temp url..",temp.trim().toString());
                        URL sourceUrl = new URL(temp.trim());
                        XMLHandlerfiltersearch myXMLHandler = new XMLHandlerfiltersearch();
                        xr.setContentHandler(myXMLHandler);
                        xr.parse(new InputSource(sourceUrl.openStream()));

                    } 
                     catch (Exception e) {
                     System.out.println("XML Pasing Excpetion = " + e);
                    }
</code></pre>

<p>i replace space in my url if any by using  temp = temp.replaceAll(" " ,"%20");</p>

<p>but  i could not deal with Spanish character in type attribute in my web service url .pls help.....</p>

<p>also check for <strong>type=Galerías</strong>  when pass from web service url.. in this 6th charaacter is not valid..</p>
