日期:2014-05-18  浏览次数:20655 次

java.net.URLEncode.encode("中文")出现错误,请达人帮忙~
请教大家个问题,
<%@   page   contentType= "text/html;charset=gb2312 "%>
<%@   include   file= "/inc/function.jsp "%>
<%
response.sendRedirect( "1.jsp?message= "+java.net.URLEncode.encode( "中文 "));
%>

运行提示错误:
symbol     :   class   URLEncode  
location:   package   net
 

import   要包含什么包进来?

------解决方案--------------------
URLEncoder


不是
URLEncode
------解决方案--------------------
呵呵 粗心