String[] tmp = HTTPUtil.splitMimeTypeAndCharset(contentType,null);
//String mimetype=tmp[0];
String charset=tmp[1];
if(StringUtil.isEmpty(charset,true)) {
Config config = ThreadLocalPageContext.getConfig();
if(config!=null)charset=config.getWebCharset();
}
try {
return IOUtil.toString(is, charset);
} catch (IOException e) {}