User Tools

Site Tools


syntax:functions:decode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
syntax:functions:decode [2019/10/30 19:35] – created dmitrysyntax:functions:decode [2021/09/18 21:06] (current) – [See also] craigt
Line 1: Line 1:
-=====decode(method, text)=====+====== Decode(method, text) =====
 +Category:  Web function
  
-Decodes a text string using one of the available methods below:+\\  
 +=====Description===== 
 +This function decodes a text string using one of the available methods below.
  
- Method   Notes  +\\  
-|uriComponentEscape |Unescapes a URI, and then converts any plus characters ("+") into spaces. | +=====Arguments===== 
-|Base64 | +^Argument^Type^Description
-|Base64url | Base64 in URL encoding |+|method  Text |The decoding method to use on //text// See the table below.  
 +|text  |Text |The text string to be decoded.  | 
 +**Return value type:** Text.
  
-**Example** +\\  
-^  Expression  Result  ^ +^Method  ^Notes  ^ 
-| decode("uriComponentEscape", "one%2Bone"  |one+one |+|'uriComponentEscape' |Unescapes a URI, and then converts any plus characters ("+") into spaces. | 
 +|'Base64'
 +|'Base64url' | Base64 in URL encoding | 
 + 
 +\\  
 +=====Examples===== 
 +  decode("uriComponentEscape", "one%2Bone" //Returns 'one+one
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:encode|Encode(method, text)]] 
 +  * [[syntax:functions:hexdecode|HexDecode(encoding, hex_text)]] 
 +  * [[syntax:functions:uridecode|URIDecode(encoding, text)]]
  
-**See also** 
  
-  * [[syntax:functions:encode]] 
-  * [[syntax:functions:uridecode]] 
syntax/functions/decode.1572478557.txt.gz · Last modified: 2019/10/30 19:35 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki