首页 > 代码库 > URL中文转码

URL中文转码

        //Driver = Driver.Substring(0, Driver.Length - 1);//截取字符串
               
                Driver = Server.UrlEncode(Driver);//URL中文转码,Driver为中文
                 
                Response.Write("<script>window.open(‘http://.....:8075/WebReport/ReportServer?reportlet=driver_salary_detail.cpt&op=view&StartDate=" + from_date.Value + "&EndDate=" + to_date.Value + "&CarDriver=" + Driver + "‘ );</script>");//跳转报表页面

URL中文转码