C# UrlDecode()

UrlDecode - decodes a string and returns the decoded string.

Function

public string UrlDecode( string s )

Parameters

s - The text string to decode.

Return value

Type: System.String - The decoded text.

Example

String EncodedString = "url+decode";
String DecodedString = Server.UrlDecode( EncodedString );
Response.Write( "http://example.com/?param=" + DecodedString );

Output

http://example.com/?param=url encode

Github

See also: