公司网站市场价,在线网站软件免费下载安装,泰安网络推广 网站建设 网站优化,找人做企业网站 注意什么一般的wap站的编码都是?xml version1.0 encodingutf-8?#xff0c;所以用form 或者a 传递参数时会遇到乱码#xff0c;在调用页面无法读取正确的中文字符#xff0c;可以用一下的函数编译#xff0c;转化成中文#xff0c;然后调用Func…一般的wap站的编码都是?xml version1.0 encodingutf-8?所以用form 或者a 传递参数时会遇到乱码在调用页面无法读取正确的中文字符可以用一下的函数编译转化成中文然后调用Function URLDecode(enStr)dim deStrdim c,i,vdeStrfor i1 to len(enStr)cMid(enStr,i,1)if c% thenveval(hMid(enStr,i1,2))if v128 thendeStrdeStrchr(v)ii2elseif isvalidhex(mid(enstr,i,3)) thenif isvalidhex(mid(enstr,i3,3)) thenveval(hMid(enStr,i1,2)Mid(enStr,i4,2))deStrdeStrchr(v)ii5elseveval(hMid(enStr,i1,2)cstr(hex(asc(Mid(enStr,i3,1)))))deStrdeStrchr(v)ii3end ifelsedestrdestrcend ifend ifelseif c thendeStrdeStr elsedeStrdeStrcend ifend ifnextURLDecodedeStrend functionfunction isvalidhex(str)isvalidhextruestrucase(str)if len(str)3 then isvalidhexfalse:exit functionif left(str,1)% then isvalidhexfalse:exit functioncmid(str,2,1)if not (((c0) and (c9)) or ((cA) and (cZ))) then isvalidhexfalse:exit functioncmid(str,3,1)if not (((c0) and (c9)) or ((cA) and (cZ))) then isvalidhexfalse:exit functionend function%很简单的调用就可以 或者“URLDecode(Request(name))”