User Tools

Site Tools


syntax:functions:decode

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
syntax:functions:decode [2019/10/30 19:35] – created dmitrysyntax:functions:decode [2020/11/25 18:04] dmitry
Line 1: Line 1:
-=====decode(methodtext)=====+=====HexDecode(encodinghex_text)=====
  
-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.  
 + 
 +^  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 
-decode("uriComponentEscape""one%2Bone"  |one+one |+hexdecode('base64url''56616c68616c6c61'   |VmFsaGFsbGE= | 
 +| 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