User Tools

Site Tools


syntax:functions:decode

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
syntax:functions:decode [2020/11/25 18:10] dmitrysyntax:functions:decode [2021/09/17 23:01] 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, value)]]
  
-**See also** 
  
-  * [[syntax:functions:encode]] 
-  * [[syntax:functions:uridecode]] 
-  * [[syntax:functions:hexdecode]] 
syntax/functions/decode.txt · Last modified: 2021/09/18 21:06 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki