%E6%9E%AA%E7%8E%8B%E4%B9%8B%E7%8E%8B这几个字符是枪王之王的意思,应该是utf8又好像不是,请各位大神帮

拜托了~鞠躬~

这个是用了ASP内置server对象的URLencode方法
你试试在ASP中运行下面内容
<%
'加密
response.write server.URLencode("枪王之王")
%>
<%
'如果想对server.URLencode中密过的内容进行解密的话可以参考以下:
Function URLDecode(enStr)
dim deStr,strSpecial
dim c,i,v
deStr=""
strSpecial="!""#$%&'()*+,.-_/:;<=>?@[\]^`{|}~%"
for i=1 to len(enStr)
c=Mid(enStr,i,1)
if c="%" then
v=eval("&h"+Mid(enStr,i+1,2))
if inStr(strSpecial,chr(v))>0 then
deStr=deStr&chr(v)
i=i+2
else
v=eval("&h"+ Mid(enStr,i+1,2) + Mid(enStr,i+4,2))
deStr=deStr & chr(v)
i=i+5
end if
else
if c="+" then
deStr=deStr&" "
else
deStr=deStr&c
end if
end if
next
URLDecode=deStr
End function

response.write URLDecode("%E6%9E%AA%E7%8E%8B%E4%B9%8B%E7%8E%8B")
%>
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-03-09
这个的确是,枪王之王,的UTF8编码。
一般情况下UTF8每三个字节代表一个汉字,一共四个汉字。
0xE6,0x9E,0xAA(枪)
0xE7,0x8E,0x8B(王)
0xE4,0xB9,0x8B(之)
0xE7,0x8E,0x8B(王)追答

我看了那个工具,它返回的是UNICODE而不是UTF8,应该算是它的BUG吧。

相似回答