title: SAX Parser encoding issue in German Language
body: <p>I'm working on an app which is in the German language. I'm getting the data in XML form. I used SAX parser for parsing these XMLs and display the data in the TextView. Everything is working fine except the special-characters issue which I got after the parsing.</p>
  
  <p>This is my XML which I got through the URL Link. This XML has utf-8 encoding. All the characters are fine in this XML file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;posts&gt;
      &lt;page id="001"&gt;
          &lt;title&gt;&lt;![CDATA[Sie kaufen bei uns ausschließlich Holzkunst- und Volkskunst-Produkte ]]&gt;&lt;/title&gt;
          &lt;detial&gt;&lt;![CDATA[Durch enge Beziehungen mit unseren Lieferanten können wir attraktive rückläufig 
          Preise und schnelle Lieferungen gewährleisten. Caroline Féry and Laura Herbst Universität Potsdam Mein 
          Flugzeug hatte zwölf Stunden VERSPÄTUNG &lt;/p&gt;]]&gt;&lt;/detial&gt;
      &lt;/page&gt;     
  &lt;/posts&gt;
  </code></pre>
  
  <p>I used SAX parser for parsing this XML:- (and displaying the parsed data in the <code>TextView</code>.)</p>
  
  <pre><code>public class GermanParseActivity extends Activity {
      /** Called when the activity is first created. */
  
      static final String URL = "http://www.xyz.com/id=1";
  
      ItemList itemList;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          XMLParser parser = new XMLParser();
          String XML = parser.getXmlFromUrl(URL);
  
          System.out.println("This XML is ========&gt;"+XML);
  
         try
         {
             SAXParserFactory spf = SAXParserFactory.newInstance();
         SAXParser sp = spf.newSAXParser();
             XMLReader xr = sp.getXMLReader();
  
             /** Create handler to handle XML Tags ( extends DefaultHandler ) */
             MyXMLHandler myXMLHandler = new MyXMLHandler();
             xr.setContentHandler(myXMLHandler);
  
         ByteArrayInputStream is = new ByteArrayInputStream(XML.getBytes());
         xr.parse(new InputSource(is));
        }
        catch(Exception e)
        {
  
        }
  
        itemList = MyXMLHandler.itemList;
  
        ArrayList&lt;String&gt; listItem= itemList.getTitle();
  
  
       ListView lview = (ListView) findViewById(R.id.listview1);
       myAdapter adapter = new myAdapter(this, listItem);
       lview.setAdapter(adapter);
      }
  
  
  }
  </code></pre>
  
  <p>but after parsing I'm getting strange characters which are not in XML file but generated after parsing the XML file.</p>
  
  <p>Like these characters:</p>
  
  <blockquote>
    <p>before parsing            after parsing</p>
    
    <p>können            --->    kÃ¶nnen</p>
    
    <p>rückläufig        --->    rÃ¼cklÃ¤ufig</p>
    
    <p>gewährleisten     --->    gewÃ¤hrleisten</p>
  </blockquote>
  
  <p>Can anyone please suggest the proper way to fix this issue?</p>