I am parsing an XML file received from a remote server that consists of several different fonts using SAX Parser , and I want to configure UTF-8 to do this. How can i install?
Code:
SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); URL sourceUrl = new URL(myURL); MyXMLHandler myXMLHandler = new MyXMLHandler(); xr.setContentHandler(myXMLHandler); xr.parse(new InputSource(sourceUrl.openStream()));
Waiting for help from SO,
Thanks.
source share