解決中文亂碼時(shí)報(bào)錯(cuò)了
為什么我添加了<%request.getcharacterencoding("utf-8");> 以后會(huì)報(bào)錯(cuò)呢? ? 報(bào)錯(cuò)信息:The method getCharacterEncoding() in the type ServletRequest is not applicable for the arguments (String)
為什么我添加了<%request.getcharacterencoding("utf-8");> 以后會(huì)報(bào)錯(cuò)呢? ? 報(bào)錯(cuò)信息:The method getCharacterEncoding() in the type ServletRequest is not applicable for the arguments (String)
2016-07-27
舉報(bào)
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");
%>這樣的吧