UrlDecode
Decodes a URL-Encoded string.
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.UrlDecode ( @String )
Name | Type | Description |
---|---|---|
@String | nvarchar(MAX) | Any character string, variable, or expression. |
nvarchar(max)
See the following Wikipedia article on Percent Encoding
1 2 3 |
SELECT SQLHTTP.net.UrlDecode('I+can+now+encode+%26+decode+a+URL+string+using+SQL+Server') |
1 2 3 4 |
----------------------------------------------------------- I can now encode & decode a URL string using SQL Server |