Extensions.StringUtil.Decode
Jump to navigation
Jump to search
Contents
Classification
Name | Decode |
Short Description | Decodes a string |
Class | Term |
Extension | OTX StringUtil extension |
Group | StringUtil related terms |
Exceptions | UnknownEncodingException OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
StringTerm = Decode(ByteFieldTerm, EncodingType);
Description
The Decode term decodes the specified ByteField corresponding to the specified encoding and returns a String as a result.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
String | Decoded string according to the given encoding. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ByteField | ByteField | Term | - | [1] | Bytefield is converted according to the encoding in the string |
Encoding | Encoding | Value | @Encoding:US-ASCII | [1] | Encoding is applied to the string |
OTL Examples
String result;
result = Decode(&46464646, @Encoding:US-ASCII);
See also
ReplaceSubString
MatchToRegularExpression
StringConcatenate
SubString
LengthOfString
IndexOf
SplitString
ToUpper
ToLower
Encode