urlencode ()

Read(330) Label: url string, encoded,

Description:

Encode a URL string.

Syntax:

urlencode(s,cs)

Note:

The function converts a URL string into an encoded one.

Parameters:

s

A URL string to be encoded

cs

Character set

Options:

@r

Decode, which is the inverse operation of the urlencode function

Return value:

String

Example:

 

A

 

1

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

2

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