类似百度 http://www.baidu.com/s?wd=abc%B0%A1%C5%B6&n=2
搜索内容是 "abc啊哦"%B0%A1%C5%B6是  "啊哦" 吧?
"啊哦" 与 %B0%A1%C5%B6 怎么相互转换呢?无里头呀,我要百度啥才能知道.....

解决方案 »

  1.   

    这个你不需要知道,你只用在后台用request.querystring["wd"].tostring()就可以了
      

  2.   

    C#里有Server.UrlEncode和Server.UrlDecode勒
      

  3.   

    网上搜到以下下载文件时说要加密我也没看懂啥意思:(还有我下载用这个不管用,郁闷,但URL的参数确实变了了)public class FileHelper
        {
            public static string Encrypt(string filename)
            {
                byte[] buffer = HttpContext.Current.Request.ContentEncoding.GetBytes(filename);
                return HttpUtility.UrlEncode(Convert.ToBase64String(buffer));
            }
            public static string Decrypt(string encryptfilename)
            {
                byte[] buffer = Convert.FromBase64String(encryptfilename);
                return HttpContext.Current.Request.ContentEncoding.GetString(buffer);
            }
        } 
    用的时候
    string url = FileHelper.Encrypt("data.mdb");//先加码
    接受的时候
    string filename = FileHelper.Decrypt(Request["fn"]); //通过解码得到文件名 
      

  4.   

    前台可用这个:escape(),unescape()
      

  5.   

    前台:escape(),unescape()
    后台:Server.UrlEncode,Server.UrlDecode
      

  6.   

    HttpUtility.UrlEncode("")
    HttpUtility.UrlDecode("")
      

  7.   

    你要百度URL 参数加密与解密!