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:04] dmitrysyntax:functions:decode [2021/09/17 22:11] craigt
Line 1: Line 1:
-=====HexDecode(encodinghex_text)=====+====== Decode(methodtext) =====
 +Category:  Web function 
 +\\  
 +=====Description===== 
 +This function decodes a text string using one of the available methods below.
  
-Converts the provided hex string into a text value. The text is assumed to have the specified encoding+\\  
 +=====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.
  
- Encoding   Notes  ^ +\\  
-|base64    | | +^Method  ^Notes 
-|base64url | Base64 in URL encoding +|'uriComponentEscape' |Unescapes a URI, and then converts any plus characters ("+") into spaces. 
-|utf-8     | | +|'Base64'
-|utf-16    | |+|'Base64url' | Base64 in URL encoding |
  
 +\\ 
 +=====Examples=====
 +  decode("uriComponentEscape", "one%2Bone" //Returns 'one+one'
  
-**Example** +\\  
-^ Expression ^  Result  ^ +=====See also===== 
-hexdecode('base64url''56616c68616c6c61'   |VmFsaGFsbGE= | +  * [[syntax:functions:encode|Encode(methodtext)]] 
-hexdecode('utf-8''56616c68616c6c61'       |Valhalla |+  * [[syntax:functions:hexdecode|HexDecode(encodinghex_text)]] 
 +  * [[syntax:functions:uridecode|URIDecode(encoding, value)]]
  
-Both arguments are case-insensitive. 
  
-**See also** 
- 
-  * [[syntax:functions:hexencode]] 
-  * [[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