Url转中文编码

Posted on 2009-06-10 16:56  Love  阅读(330)  评论(0)    收藏  举报

string q = Request.Url.Query;

System.Collections.Specialized.NameValueCollection nv =
        System.Web.HttpUtility.ParseQueryString(q, System.Text.Encoding.GetEncoding("GB2312"));
        string areaid = nv["aid"];

 

 

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3