标签:http ar java sp div on ad new as
获取gb2312的编码格式返回值,很容易出现 ??值为65533的情况。
很多时候系统默认utf-8处理字串,gb2312和utf-8是不可逆的,所以在获取inputstream的时候就把它转码。
reader = new BufferedReader(new InputStreamReader(con.getInputStream(),"gb2312"));
标签:http ar java sp div on ad new as
原文地址:http://my.oschina.net/u/913208/blog/331895