jsp传递中文乱码的解决方案

1、传递前两次转码:

var src=G3.webPath+"/jsp/bc_bs/workflow/setting/organ_commanager_list.jsp?struId="+struId+"&organId="+organId+"&organName="+encodeURI(encodeURI(organName));//注意这句

2、接收时:

String organName = (String)request.getParameter("organName");
    if(organName !=null ){
           organName = java.net.URLDecoder.decode(request.getParameter("organName"),"UTF-8");//注意这句

    }


你可能感兴趣的:(Javascript)