复制代码 代码如下:
<?xml version="1.0" encoding="utf-8" ?>
<!doctype html public "-//wapforum//dtd xhtml mobile 1.0//en" "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("望京", "utf-8")%>"> 望京</a>
</html>
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!