JSP传值中文乱码

	String str = (String) request.getParameter("username");
	byte[] temp = str.getBytes("ISO-8859-1");
	str = new String(temp,"UTF-8");
	out.print(str);


你可能感兴趣的:(jsp,String,byte)