chengyu2099 发表于 2013-2-6 10:58:19

URL 乱码

<a href="<%=request.getContextPath()%>/YXTWebPage/album/sourcePhoto.jsp?xman=<%=URLEncoder.encode(rpb.getPhoto_name()) %> ">
<img src= '<%=srcPath %>' width='140' height='120'></a>

java.net.URLEncoder.encode(rpb.getPhoto_name())

StringXman = new String(request.getParameter("xman").getBytes("iso8859-1"));
System.out.println("########################*= "+Xman);
页: [1]
查看完整版本: URL 乱码