jsp用form表单提交在linux下出现乱码
如题,在windows下正常的程序,放到linux下中文就出现了乱码,请教一般是哪里可能出现问题。麻烦帮分析一下
页面:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<tr>
<td align="right" nowrap="nowrap">编码:</td>
<td><input type="text" id="propertycode" name="vo.propertycode" value="<%=vo.getPropertycode()%>"/></td>
</tr>
提交:
submitHandler: function(commentForm){
commentForm.action = "<%=baseWlanPath%>saveKpiProperties.action";
commentForm.submit();
}
action:
public String saveKpiProperties(){
String t = request.getCharacterEncoding();
System.out.println("t.getCharacterEncoding=============================" + t);
vo.setPropertytable("KPIINFO");
maintenanceFacade.saveKpiProperty(vo);
request.setAttribute("data", vo);
if(Utils.isNull(vo.getPropertyid())){
request.setAttribute("saved", "false");
}else{
request.setAttribute("saved", "true");
}
return "add";
}