如题我想把http传递的汉字编码,该怎么操作呢?
请多指教

解决方案 »

  1.   

    string url = "http://xxx/?name=" + Server.UrlEncode("汉字");
      

  2.   

    传递
    url="description.aspx?name="+Server.UrlEncode(myname.text)
    response.redirect(url)接受
    name=Server.UrlDecode(Request.QueryString("name"))
      

  3.   

    不是,是我提交到浏览器里的Page.Response.Redirect("show.aspx?"+message+"");显示%34%23 什么的,我该怎么做哩?请多指教
      

  4.   

    不是一样的吗?
    string s_url=Server.UrlEncode(message);
    Page.Response.Redirect("show.aspx?"+s_url+"");
      

  5.   

    可浏览器还是这样显示滴啊
    %e6%b5%8b%e8%af%95
      

  6.   

    Server.HtmlEncode("");

    Server.UrlEncode("");
      

  7.   

    http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpref/html/frlrfsystemwebhttpserverutilityclassurlencodetopic1.asp
      

  8.   

    string url = "http://xxx/?name=" + Server.Unicode("汉字");
      

  9.   

    传递
    url="description.aspx?name="+Server.Unicode(myname.text)
    response.redirect(url)接受
    name=Server.Unicode(Request.QueryString("name"))
    即可