28,406
社区成员
发帖
与我相关
我的任务
分享
<%
'On Error Resume Next
response.write chr(-13087) & chr(-16965)
%>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
response.write(chr(-13087) & chr(-16965))
%>
</body>
</html>
<a href="a.asp?tt=<%=server.urlencode("测试")%>"><%
response.write(request("tt"))
%>
<%
url = "wd=%D6%D0%CE%C4%B2%E9%D1%AF"
Response.Write URLDecode(url)
Function URLDecode(u)
Dim s, a, i, c, t, d
s = ""
For i=1 To Len(u)
c = Mid(u, i, 1)
If c <> "%" Then
s = s & c
Else
t = Mid(u, i+1, 2)
d = Eval("&H" & t)
If d >=0 And d < 127 Then
s = s & Chr(d)
i = i + 2
Else
c = Mid(u, i+3, 1)
If c <> "%" Then
URLDecode = s & "无法转换"
Else
c = Mid(u, i+4, 2)
d = Eval("&H" & t & c)
s = s & Chr(d)
i = i + 5
End If
End If
End If
Next
URLDecode = s
End Function
%>