URL Encode and Decode in ASP.NET Core

后端 未结 5 1896
花落未央
花落未央 2020-12-05 03:54
HttpContext.Current.Server.UrlEncode

It\'s only work in .NET Framework. How can I encode or decode uri arguments in ASP.NET Core project?

5条回答
  •  既然无缘
    2020-12-05 04:29

    It's available on version 2.0.0 of the .Net Core SDK, in System.Net.WebUtility.UrlEncode (see documentation)

提交回复
热议问题