urlencode()

Read(2573) Label: url string, encoded,

Description:

Encode a URL string.

Syntax:

urlencode(s,cs)

Note:

The function converts a URL string into an encoded one.

Parameter:

s

A URL string to be encoded

cs

Character set

Option:

@r

Decode, which is the inverse operation of urlencode() function

Return value:

String type

Example:

 

A

 

1

=urlencode("http://localhost:8503/p1.dfx()","GBK")

2

=urlencode@r("http%3A%2F%2Flocalhost%3A8503%2Fp1.dfx%28%29","GBK")