PercentDecode
Decodes a string that was previously percent-encoded.
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.PercentDecode ( @String )
Name | Type | Description |
---|---|---|
@String | nvarchar(MAX) | Any character string, variable, or expression. |
nvarchar(max)
See the following Wikipedia articles for more information about Percent-encoding
1 2 3 |
SELECT SQLHTTP.net.PercentDecode('I%20can%20now%20percent-encode%20%26%20percent-decode%20using%20SQL%20Server') |
1 2 3 4 |
----------------------------------------------------------- I can now percent-encode & percent-decode using SQL Server |