解決中文亂碼時報錯了
為什么我添加了<%request.getcharacterencoding("utf-8");> 以后會報錯呢? ? 報錯信息:The method getCharacterEncoding() in the type ServletRequest is not applicable for the arguments (String)
為什么我添加了<%request.getcharacterencoding("utf-8");> 以后會報錯呢? ? 報錯信息:The method getCharacterEncoding() in the type ServletRequest is not applicable for the arguments (String)
2016-07-27
舉報
2016-07-27
<%request.setCharacterEncoding("utf-8") ;%>//(注意是set,不是get)
<jsp:useBean id="myUsers" class="com.po.Users" scope="page"></jsp:useBean>
2016-07-27
<%?
? request.setCharacterEncoding("utf-8");
%>這樣的吧