.NET , UrlDecode. .
public static string EncodeForQueryString(this string String)
{
String = System.Web.HttpUtility.UrlEncode(String);
return String;
}
public static string DecodeForQueryString(this string String)
{
String = String.Replace("+", "%2b");
String = System.Web.HttpUtility.UrlDecode(String);
return String;
}
querystring:
string myUrl = "myPage.htm?q=" + "Saving+Silverman".ToString().EncodeForQueryString();
querystring:
string myDecodedString = Request.Params["q"].DecodeForQueryString();