URLEncode(
     string:string,
     [string:flags]
)
string

Arguments

string

Input string to encode or decode.

flags

Optional. Optional flags are:

ddecode: decode string rather than encode
ggoogle: encode for use with Google (space is converted to a + symbol)
rrfc: encode compliant with RFC (~.-_ characters are not encoded)

Return value

Encoded/decoded version of string.

Description

Encodes or decodes a string using URL-encoding.

Example:

Output( URLEncode("File Name") );
--> File%20Name

Output( URLEncode("File Name", "g") );
-> File+Name

Output( URLEncode("File%20Name", "d") );
-> File Name