PercentEncode
Percent-Encodes a string.
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.PercentEncode ( @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.PercentEncode('I can now percent-encode & percent-decode using SQL Server') |
1 2 3 4 |
----------------------------------------------------------------------------- I%20can%20now%20percent-encode%20%26%20percent-decode%20using%20SQL%20Server |