Table of Contents

Encode(method, text)

Category: Web function


Description

This function encodes a text string using one of the available methods below.


Arguments

ArgumentTypeDescription
method Text The encoding method to use on text. See the table below.
text Text The text string to be encoded.

Return value type: Text.


Method Notes
uriComponentEscape Escapes a URI, and then converts any spaces into plus characters ("+").
Base64
Base64url Base64 in URL encoding


Examples

encode("uriComponentEscape", "one+one")  //Returns 'one%2Bone'


See also