用ASP实现JS的decodeURIComponent()函数

<%
 response.write jsDecodeURIComponent( "%E6%B5%8B%E8%AF%95"  )
%>
<script language="jscript" runat="server">
 function jsDecodeURIComponent(str){return decodeURIComponent(str) }
</script>

ASP urldecode的完美解决办法。

uploadify 3版本,用formData额外传输参数时,用ASP解析乱码。想到办法,传之前先用encodeURIComponent编码。ASP接收时再解码。

script language=jscript runat=server,这在段,可以当作html直接放在asp代码里面。

原文地址:https://www.cnblogs.com/howgoo/p/6426366.html