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
Next revisionBoth sides next revision
syntax:functions:decode [2020/11/25 18:09] – old revision restored (2019/10/30 23:35) dmitrysyntax:functions:decode [2021/09/17 22:11] craigt
Line 1: Line 1:
-=====decode(method, text)=====+====== Decode(method, text) =====
 +Category:  Web function 
 +\\  
 +=====Description===== 
 +This function decodes a text string using one of the available methods below.
  
-Decodes a text string using one of the available methods below:+\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|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.
  
- Method  Notes  ^ +\\  
-|uriComponentEscape |Unescapes a URI, and then converts any plus characters ("+") into spaces. | +^Method  ^Notes 
-|Base64 | +|'uriComponentEscape|Unescapes a URI, and then converts any plus characters ("+") into spaces. | 
-|Base64url | Base64 in URL encoding |+|'Base64
 +|'Base64url| Base64 in URL encoding |
  
-**Example** +\\  
-^  Expression ^  Result  +=====Examples===== 
-decode("uriComponentEscape", "one%2Bone"  |one+one |+  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/decode.txt · Last modified: 2021/09/18 21:06 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki