android utf-8 file parsing
问题 I have some .xml files that are encoded in UTF-8 . But whenever I try to parse them on my tablet (idea pad, lenovo, android 3.1), I get the same error: org.xml.SAXParseException: Unexpected token (position: TEXT @1:2 in java.io.StringReader@40bdaef8). These are the lines that throw the exception: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); InputSource inputSource = new InputSource(); inputSource.setCharacterStream(new