User Tools

Site Tools


Action disabled: revisions
syntax:functions:encode

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

syntax/functions/encode.txt · Last modified: 2021/09/18 21:03 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki