ajax提交汉字到后台保存时乱码问题!

前端(转换):

  var param = XXXXXXXXXXXXXXXXXX;
  param = decodeURIComponent(param,true);
  param = encodeURI(param, "UTF-8");
  $.post('<%=request.getContextPath()%>a.html' ,encodeURI(param, "UTF-8"),function(data){
    reFresh();
  },"json");

后台(解析):

  String remark = URLDecoder.decode(model.getPhyeRemark(), "utf-8");

上一篇:css盒子模型的深入理解,在块级、行内元素的区别和特性


下一篇:jenkins了解一下,讲一下jenkins这个鬼东西