Code example for InputSource

Methods: setEncoding

0
		if (mReader.getContentHandler() == null) {
			mReader.setContentHandler(new EncuestaHandler(encuesta));
		} 
 
		try { 
			InputSource inputSource = new InputSource(is);
			inputSource.setEncoding("UTF-8");
			mReader.parse(inputSource);
		} catch (IOException ioEx) {
 
		} catch (SAXException saxEx) {
 
		} 
		return encuesta;
	} 
	 
/*	Not used any more 
 
	public XMLParser(ContentHandler handler) { 
 
		SAXParserFactory f = SAXParserFactory.newInstance();