CopyCode The Code is as follows: <? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype HTML public "-// wapforum // dtd xhtml mobile 1.0 //" http://www.wapforum.org/DTD/xhtml-mobile10.dtd ">
<% @ Page Language = "Java" contenttype = "text/html; charset = UTF-8"
Pageencoding = "UTF-8" %>
<% @ Page import = "java.net. *" %>
<%
String location = "";
String locationfromrequest = request. getparameter ("location ");
If (null! = Locationfromrequest
&&(! Locationfromrequest. Equals (""))){
Location = java.net. urldecoder. Decode (locationfromrequest,
UTF-8 ");
}
%>
<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
</Head>
Xxxxxxxxxxxxxxxxx <% = new string (location. getbytes ("iso-8859-1"), "UTF-8") %>
<Br/>
<A href = "1234.jsp? Location = <% = java.net. urlencoder. encode ("Wangjing", "UTF-8") %> "> Wangjing </a>
</Html>