HttpContext.Current.Server.UrlEncode
这仅适用于 .NET Framework。如何在 ASP.NET Core 中对 URI 参数进行编码或解码?
然后WebUtility
将为您提供以下课程:
public static class WebUtility
{
public static string UrlDecode(string encodedValue);
public static string UrlEncode(string value);
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)