  

|
方法一:
服务器上修改注册表:
1、开始--运行--regedit;
2、将[hkey_local_machine\system\currentcontrolset\services\inetinfo\parameters\favordbcs]中favordbcs的键值改为0即可。
如果上述方法无效,请使用下面的方法:
方法二:
服务器上对winnt\system32\inetsrv\urlscan\urlscan.ini文件进行修改,将
allowhighbitcharacters=0 ; if 1, allow high bit (ie. utf8 or mbcs) characters in url
中的0改为1,重启iis。
方法三:
在程序中自行控制
´转换双字节字符为合法的url传输字串
function geturlencodel(byval url)
dim i,code
geturlencodel=""
if trim(url)="" then exit function
for i=1 to len(url)
code=asc(mid(url,i,1))
if code<0 then code = code + 65536
if code>255 then
geturlencodel=geturlencodel&"%"&left(hex(code),2)&"%"&right(hex(code),2)
else
geturlencodel=geturlencodel&mid(url,i,1)
end if
next
end function
方法四:
ie-internet选项-高级-将“始终以utf-8方式发送”选项去掉。 |
|