ChiakiYu.Common.Web.WebHelper.UrlEncode C# (CSharp) 메소드

UrlEncode() 공개 정적인 메소드

Url编码
public static UrlEncode ( string urlToEncode ) : string
urlToEncode string 待编码的url字符串
리턴 string
        public static string UrlEncode(string urlToEncode)
        {
            if (string.IsNullOrEmpty(urlToEncode))
                return urlToEncode;

            return HttpUtility.UrlEncode(urlToEncode).Replace("'", "%27");
        }