code_junkie

Repairing wrong encoding in XML files

Nov 11th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. DocumentBuilder.parse(ByteArrayInputStream bais)
  2.  
  3. org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
  4.  
  5. DocumentBuilder.parse(new InpputSource(new InputStreamReader(inputStream, "<real encoding>")));
Add Comment
Please, Sign In to add comment