*
1,获得InputStream
byte[] b =new byte[3];
instream.read(b);
instream.close();
if(b[0,1,2]==(-17,-69,-65)){
则为UTF-8
}
b[0,1,2]==(34,32,73),则为 Big5
else
GBK,(其中断点测试一组为73,83,77)
*
*
1,获得InputStream
byte[] b =new byte[3];
instream.read(b);
instream.close();
if(b[0,1,2]==(-17,-69,-65)){
则为UTF-8
}
b[0,1,2]==(34,32,73),则为 Big5
else
GBK,(其中断点测试一组为73,83,77)
*