在要传参数的地方写:<%=java.net.URLEncoder.encode("中文参数","GB2312")%>

在获取参数的地方:

String ssxt=java.net.URLDecoder.decode(request.getParameter("ssxt"),"GB2312");

ssxt = new String(ssxt.getBytes("ISO-8859-1"), "utf-8");

 

 

 

 

 

<%=URLDecoder.decode(zbmc,"GBK")%>

相关文章:

  • 2021-09-14
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-02-08
  • 2021-10-18
  • 2021-08-05
相关资源
相似解决方案