注,asp页面不能做任何更改, 必须用get方法传递参数.并且url不能用urlEncode编码.
比如:http://www.abc.com?a=你好.
此url用浏览器,用vc都可以成功request,用.net就导致页面出错.....

解决方案 »

  1.   

    最好传英文System.Uri.HexEscape()
    System.Web.HttpUtility.UrlEncode()
    <%@ Page language="C#"%>
    <script runat=server>
    void Page_Load(object sender, System.EventArgs e)
    {
    string aa = "%C9%CF%BA%A3"; 
    string x = System.Web.HttpUtility.UrlDecode(aa,System.Text.Encoding.GetEncoding("Gb2312"));
    Response.Write(x);
    }
    </script>
      

  2.   

    "http://www.abc.com?a="+System.Web.HttpUtility.UrlEncode("你好.")
      

  3.   

    除了UrlEncode,很多编码都可以的,还有很多编码楼主也可以试试,
      

  4.   

    正解在这里:
    System.Web.HttpUtility.UrlDecode(aa,System.Text.Encoding.GetEncoding("Gb2312"));
    我好晕阿,犯了一个低级错误