用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代码里面。

 

posted @ 2017-02-21 21:26  秋风无叶  阅读(642)  评论(0编辑  收藏  举报