String s=new String();
while((s=in.readLine())!=null){
sb.append(s);这样处理后, s的编码已经不是读取的ISO8859-1了, 因此出错.可使用一下代码读取
byte[] data = new byte[file.length()];
InputStream in = new FileInputStream(file);
in.read(data,0, data.length);
in.close();
while((s=in.readLine())!=null){
sb.append(s);这样处理后, s的编码已经不是读取的ISO8859-1了, 因此出错.可使用一下代码读取
byte[] data = new byte[file.length()];
InputStream in = new FileInputStream(file);
in.read(data,0, data.length);
in.close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货