snacktory icon indicating copy to clipboard operation
snacktory copied to clipboard

Converter.detectCharset throws for inputs longer than 2048

Open LBoraz opened this issue 7 years ago • 0 comments

protected String detectCharset(String key, ByteArrayOutputStream bos, BufferedInputStream in, String enc) throws IOException { byte[] arr = new byte[2048];

how to reproduce: do a fetchAndExtract of this url 'http://www.gazzetta.it/Sport-Invernali/Sci-Alpino/Coppa-Mondo-Sci/26-02-2017/sci-combinata-brignone-ho-sciato-senza-paura-uscire-180995893986.shtml'

LBoraz avatar Mar 31 '17 09:03 LBoraz