C# .Net How to Encode Url space with %20 instead of +
public void fv() { var encoded = Uri.EscapeDataString("How+ to encode"); Console.WriteLine(encoded);//How%2B%20to%20encode Console.WriteLine(WebUtility.UrlDecode( encoded));//How+ to encode }
public void fv() { var encoded = Uri.EscapeDataString("How+ to encode"); Console.WriteLine(encoded);//How%2B%20to%20encode Console.WriteLine(WebUtility.UrlDecode( encoded));//How+ to encode }