String interest[] = request.getParameterValues("interest");代码转换
<%@pagecontentType="text/html;charset=GB2312"language="java"%><%@pageinfo="用户注册"%><%/...
<%@ page contentType="text/html;charset=GB2312" language="java"%>
<%@ page info="用户注册"%>
<%
//获取用户信息
String username = request.getParameter("username");
String pwd = request.getParameter("pwd1");
String year = request.getParameter("year");
String month = request.getParameter("month");
String day = request.getParameter("day");
String gender = request.getParameter("gender");
String email = request.getParameter("email");
String interest[] = request.getParameterValues("interest");
String address = request.getParameter("address");
//代码转换
interest[] =new String(interest.getBytes("ISO8859_1"),"GBK");
gender = new String(gender.getBytes("ISO8859_1"),"GBK");
username = new String(username.getBytes("ISO8859_1"),"GBK");
倒数第三行转换代码错了、该怎么改? 展开
<%@ page info="用户注册"%>
<%
//获取用户信息
String username = request.getParameter("username");
String pwd = request.getParameter("pwd1");
String year = request.getParameter("year");
String month = request.getParameter("month");
String day = request.getParameter("day");
String gender = request.getParameter("gender");
String email = request.getParameter("email");
String interest[] = request.getParameterValues("interest");
String address = request.getParameter("address");
//代码转换
interest[] =new String(interest.getBytes("ISO8859_1"),"GBK");
gender = new String(gender.getBytes("ISO8859_1"),"GBK");
username = new String(username.getBytes("ISO8859_1"),"GBK");
倒数第三行转换代码错了、该怎么改? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询