使用的是struts框架,如果不用structs,则需查看容器比如tomcat的url编码类型
编码:
URLEncoder.encode(hobbies.toString(),"utf-8")
解码:
hobbiesParam_dec = new String(hobbiesParam.getBytes("ISO-8859-1"),"UTF-8");

相关文章:

  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2021-06-18
  • 2021-11-19
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案