HTTP_ENCODE function [HTTP]

Function

Encodes special characters in strings for use with HTTP.

Syntax

HTML_ENCODEstring )

NoteCIS functional compensation performance considerations apply. See “Conditions that cause processing by SQL Anywhere” in Chapter 3, “Optimizing Queries and Deletions,” in the Performance and Tuning Guide.

Parameters

string Arbitrary string to be used in an HTTP request.

Usage

This function returns the string argument after making the following set of substitutions. In addition, all characters with hexadecimal codes less than 1F or greater than 7E are replaced with %nn, where nn is the character code.

Character

Substitution

space

%20

"

%22

#

%23

&

%26

,

%2C

;

%3B

<

%3C

>

%3E

[

%5B

\

%5C

]

%5D

`

%60

{

%7B

|

%7C

}

%7D

Standards and compatibility

See also

“HTML_ENCODE function [HTTP]”

“HTTP_DECODE function [HTTP]”