get请求的乱码解决方式

  

利用下面方法:

private String getEncodeStr(String str) throws Exception{
     return  new String(str.getBytes("iso-8859-1"),"UTF-8");

    }
 

posted @ 2011-04-21 21:00  alaricblog  阅读(132)  评论(0编辑  收藏  举报