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
syntax:functions:decode [2020/11/25 18:04] dmitrysyntax:functions:decode [2021/09/18 21:06] (current) – [See also] craigt
Line 1: Line 1:
-=====HexDecode(encodinghex_text)=====+====== Decode(methodtext) =====
 +Category:  Web function
  
-Converts the provided hex string into a text value. The text is assumed to have the specified encoding+\\  
 +=====Description===== 
 +This function decodes a text string using one of the available methods below.
  
- Encoding   Notes  +\\  
-|base64    | | +=====Arguments===== 
-|base64url Base64 in URL encoding | +^Argument^Type^Description
-|utf-8     | | +|method  Text |The decoding method to use on //text// See the table below.  
-|utf-16    | |+|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. |
 +|'Base64' |
 +|'Base64url' | Base64 in URL encoding |
  
-**Example** +\\  
-^ Expression ^  Result +=====Examples===== 
-| hexdecode('base64url''56616c68616c6c61'   |VmFsaGFsbGE= | +  decode("uriComponentEscape""one%2Bone" //Returns 'one+one'
-| hexdecode('utf-8', '56616c68616c6c61'       |Valhalla |+
  
-Both arguments are case-insensitive.+\\  
 +=====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: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