User Tools

Site Tools


syntax:functions:hexdecode

Differences

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

Link to this comparison view

Last revisionBoth sides next revision
syntax:functions:hexdecode [2020/11/25 18:05] – created dmitrysyntax:functions:hexdecode [2021/09/17 22:46] craigt
Line 1: Line 1:
-=====HexDecode(encoding, hex_text)=====+====== HexDecode(encoding, hex_text) =====
 +Category:  Web function
  
-Converts the provided hex string into a text value. The text is assumed to have the specified encoding. +\\  
 +=====Description===== 
 +This function converts the provided hex string into a text value. The text is assumed to have the specified encoding.
  
-^  Encoding   Notes  ^+\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|encoding  | Text |The method that was used to create the encoded //text// See the table below. 
 +|hex_text  |Text |The text string to be decoded. 
 +**Return value type:** Text. 
 + 
 +\\  
 +^Encoding  ^Notes  ^
 |base64    | | |base64    | |
 |base64url | Base64 in URL encoding | |base64url | Base64 in URL encoding |
Line 9: Line 20:
 |utf-16    | | |utf-16    | |
  
 +\\ 
 +=====Examples=====
 +  hexdecode('base64url', '56616c68616c6c61' //Returns 'VmFsaGFsbGE'
  
-**Example** +  hexdecode('utf-8', '56616c68616c6c61' //Returns 'Valhalla'
-^ Expression ^  Result +
-| hexdecode('base64url', '56616c68616c6c61'   |VmFsaGFsbGE= | +
-hexdecode('utf-8', '56616c68616c6c61'       |Valhalla +
- +
-Both arguments are case-insensitive.+
  
-**See also**+\\  
 +=====See also===== 
 +  * [[syntax:functions:encode|Encode(method, text)]] 
 +  [[syntax:functions:hexencode|HexEncode(encoding, text)]] 
 +  [[syntax:functions:uridecode|URIDecode(encoding, value)]]
  
-  * [[syntax:functions:hexencode]] 
-  * [[syntax:functions:encode]] 
-  * [[syntax:functions:uridecode]] 
syntax/functions/hexdecode.txt · Last modified: 2021/09/18 21:06 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki