浏览器的问题,一般使用中文名做下载的网页,都要要求用户把IE选项中的"使用UTF-8发送URL"关闭.

解决方案 »

  1.   

    <script language=vbs>
    function urlencoding(vstrin)
    dim i,strreturn
        strreturn = ""
        for i = 1 to len(vstrin)
            thischr = mid(vstrin,i,1)
            if abs(asc(thischr)) < &hff then
                strreturn = strreturn & thischr
            else
                innercode = asc(thischr)
                if innercode < 0 then
                    innercode = innercode + &h10000
                end if
                hight8 = (innercode  and &hff00)\ &hff
                low8 = innercode and &hff
                strreturn = strreturn & "%" & hex(hight8) &  "%" & hex(low8)
            end if
        next
        urlencoding = strreturn
    end function</script><script language="javascript">
    <!--
    location.href=urlencoding("../www/我的文件.pdf");
    //-->
    </script>