前台:
提交的数据用javascript encodeURIComponent函数进行处理
后台:
如果asp后台数据是javascript编写,则用函数decodeURIComponent解密即可
如果asp后台数据是vbscript编写
<%
dim encodestr
encodestr=myEncodeURIComponent("http%3A%2F%2Fwww.cnblogs.com%2Fdyh221%20%E5%A4%A7%E7%81%B0%E7%8B%BC%E5%8D%9A%E5%AE%A2")
response.write encodestr
%>
<script language="javascript" type="text/javascript" runat="server">
function myEncodeURIComponent(sStr){
return decodeURIComponent(sStr);
}
</script>
浙公网安备 33010602011771号