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 revisionBoth sides next revision
syntax:functions:decode [2020/11/25 18:04] dmitrysyntax:functions:decode [2020/11/25 18:09] – old revision restored (2019/10/30 23:35) dmitry
Line 1: Line 1:
-=====HexDecode(encodinghex_text)=====+=====decode(methodtext)=====
  
-Converts the provided hex string into a text value. The text is assumed to have the specified encoding.  +Decodes a text string using one of the available methods below:
- +
-^  Encoding  ^  Notes  ^ +
-|base64    | | +
-|base64url | Base64 in URL encoding | +
-|utf-8     | | +
-|utf-16    | |+
  
 +^  Method  ^  Notes  ^
 +|uriComponentEscape |Unescapes a URI, and then converts any plus characters ("+") into spaces. |
 +|Base64 |
 +|Base64url | Base64 in URL encoding |
  
 **Example** **Example**
-^ Expression ^  Result + Expression ^  Result 
-hexdecode('base64url''56616c68616c6c61'   |VmFsaGFsbGE= | +decode("uriComponentEscape""one%2Bone"  |one+one |
-| hexdecode('utf-8', '56616c68616c6c61'       |Valhalla | +
- +
-Both arguments are case-insensitive.+
  
 **See also** **See also**
  
-  * [[syntax:functions:hexencode]] 
   * [[syntax:functions:encode]]   * [[syntax:functions:encode]]
   * [[syntax:functions:uridecode]]   * [[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