在Baidu中搜索“游戏”,浏览器上的地址是:http://www.baidu.com/baidu?word=%D3%CE%CF%B7 以前一直不明白“游戏”和“%D3%CE%CF%B7”是怎么对应起来的。DW里面链接中文网址也会这样。今天试了一下,原来是对应的ascii码的16进制的显示。写了下面一段转换代码。 <%dim strstringstrstring= 游戏 response.write strstringresponse.write <br> dim str,Temp_Str,i,Test_StrTemp_Str=Len(strstring)For i=1 To Temp_StrTest_Str=(Mid(strstring,I,1))If Asc(Test_Str)>0 Thenstr=str & Test_StrElsestr=str & % & left(Hex(Asc(Test_Str)),2) str=str &...
查看详细内容 >>