namespace EntrustSettle.Common.Helper { public class UrlHelper { /// /// UrlEncode编码 /// /// url /// public static string UrlEncode(string url) { return System.Web.HttpUtility.UrlEncode(url, System.Text.Encoding.UTF8); } /// /// UrlEncode解码 /// /// 数据 /// public static string UrlDecode(string data) { return System.Web.HttpUtility.UrlDecode(data, System.Text.Encoding.UTF8); } } }