request方式传中文是有问题的,不管asp还是aspx,
要进行编码转换

解决方案 »

  1.   

    string="ddd.asp?name="+ Server.UrlEncode(name1.Text);
      

  2.   

    to net_lover(孟子E章) 
    老大,还是不行啊,我在asp页中用<%
    response.Write(request("Search") )
    response.End()
    %>
    来读取这个,是乱码!我的详细代码:
    string str="proSearch.asp?SortName="+ Request["SortName"] +"&Search=" + Server.UrlEncode(Request["Search"]) +"&SortID=" + Request["SortID"];
    Response.Redirect(str);
      

  3.   

    在ASP.NET中一般不会有这种问题,只要系统的默认编码认识就行
    我刚才试了一下
    private void Page_Load(object sender, System.EventArgs e)
    {
    // 在此处放置用户代码以初始化页面
    if (Request.QueryString["sid"]!=null)
    {
    Response.Write(Request.QueryString["sid"]); 
    }
    } #region Web 窗体设计器生成的代码
    override protected void OnInit(EventArgs e)
    {
    //
    // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
    //
    InitializeComponent();
    base.OnInit(e);
    }

    /// <summary>
    /// 设计器支持所需的方法 - 不要使用代码编辑器修改
    /// 此方法的内容。
    /// </summary>
    private void InitializeComponent()
    {    
    this.Button1.Click += new System.EventHandler(this.Button1_Click);
    this.Load += new System.EventHandler(this.Page_Load); }
    #endregion private void Button1_Click(object sender, System.EventArgs e)
    {
    string temp="";
    temp="啊";
    temp="test.aspx?sid="+ temp;
    Response.Redirect(temp);
    }显示和读取都没有问题
      

  4.   

    <globalization 
                requestEncoding="utf-8" 
                responseEncoding="utf-8" 
       />改成
    <globalization 
                requestEncoding="GB2312" 
                responseEncoding="GB2312" 
       />可解决问题
      

  5.   

    TO:楼上
    我web.config中也是
    <globalization 
                requestEncoding="utf-8" 
                responseEncoding="utf-8" 
       />
    也没有这种问题