在tomcat和开发工具上跟踪正常。
但是在linux环境的websphere,前台页面传进来的数据全部都变成了?。
其中html有加utf-8
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" >
接收也设置了filter
doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) IOException, ServletException { .debug(); (.!= && (.|| servletRequest.getCharacterEncoding() == )) { servletRequest.setCharacterEncoding(.); (.) { servletResponse.setCharacterEncoding(.); } } filterChain.doFilter(servletRequest,servletResponse); }
sendWx(){ var appid = $("#appid").val(); var remark = $("#remark").val(); var runTimes = $("#runTimes").val(); var userOpenId = $("#userOpenId").val(); var url = "#(ctxPath)/chatesb/wxSend"; $.ajax({ type: "POST", data: "remark="+remark+"&appid="+appid+"&runTimes="+runTimes+"&userOpenId="+userOpenId, url:url , success: function(msg){ alert(msg); } }); }
项目:JFinal