java 去除url获取值里的BOM

来源:互联网 发布:新手怎么运营淘宝店 编辑:程序博客网 时间:2024/06/11 02:18


                 String strResult=EntityUtils.toString(httpResponse.getEntity());  
                 
                 if ((int)strResult.charAt(0)==65279){ 
                strResult=strResult.substring(1); 
                   }

0 0
原创粉丝点击