HttpContext.Current.Server.UrlEncode
It\'s only work in .NET Framework. How can I encode or decode uri arguments in ASP.NET Core project?
Don't waste your time, I've got plenty of experience with these so called url encoders, they are all useless, and have different quirks. Eg WebUtility.UrlEncode doesn't take care of "+" sign.
If you want to encode URL parameters, employ a BASE58 encoding. It uses only alphabet letters + numbers, thus you don't need to url encode.