为什么我自己用Zxing做出来的Android手机二维码识别软件遇到中文显示乱码,而“快拍二维码”却正常显示呢 140
1个回答
展开全部
sb = new StringBuffer();
HttpEntity entity = response.getEntity();
InputStream is = entity.getContent();
BufferedReader br = new BufferedReader(
new InputStreamReader(is,"GB2312"));
String data = "";
while ((data = br.readLine()) != null) {
sb.append(data);
}
String result = sb.toString();
HttpEntity entity = response.getEntity();
InputStream is = entity.getContent();
BufferedReader br = new BufferedReader(
new InputStreamReader(is,"GB2312"));
String data = "";
while ((data = br.readLine()) != null) {
sb.append(data);
}
String result = sb.toString();
追问
请问一下这个添加的具体位置是哪边啊
追答
你识别出来的流啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询