在接收get方式的jsp头加上:
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="gb2312"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
java代码部分写发:
request.setCharacterEncoding ("UTF-8");
response.setCharacterEncoding ("UTF-8");
String name =request.getParameter("name");
out.print(name);
这样用doget方式获取的就能以中文显示了。