使用的是struts框架,如果不用structs,则需查看容器比如tomcat的url编码类型
编码:
URLEncoder.encode(hobbies.toString(),"utf-8")
解码:
hobbiesParam_dec = new String(hobbiesParam.getBytes("ISO-8859-1"),"UTF-8");
转载于:https://www.cnblogs.com/speedmancs/archive/2009/09/27/1575190.html