<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String name = request.getParameter("name");//get tomcat 's string formatter is ISO-8859-1
byte[] names = java.net.URLEncoder.encode(name,"ISO-8859-1").getBytes();//get inner tomcat 's byte content
name = new String(names,"utf-8");//get url 's string formatter is utf-8
name = java.net.URLDecoder.decode(name,"utf-8");//decode string to chinese word
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'test2.jsp' starting page</title>
</head>
<body>
Name:<%=name %>
</body>
</html>