Format Property
The type of encoding to be used.
Syntax
int GetFormat();
int SetFormat(int iFormat);
Possible Values
FMT_UUENCODE(0), FMT_BASE_64(1), FMT_QP(2), FMT_URL(3), FMT_JIS(4), FMT_YENCODE(5), FMT_MD5HASH(6), FMT_SHA1HASH(7), FMT_HEX(8), FMT_HTML(9), FMT_HMAC(10), FMT_UTF8(11), FMT_UTF7(12), FMT_BASE_32(13), FMT_BASE_64URL(14)
Default Value
0
Remarks
This property contains the type of encoding to be used. The following are the possible values for this property, and the corresponding descriptions:
fmtUUEncode (0) | The most popular standard. 3 Bytes are encoded into 4 readable characters. If multiple filenames are specified, then the extension ".uue" is used/expected. |
fmtBase64 (1) | Encoding format of MIME. Much like UUEncode but another subset of printable characters is used. If multiple filenames are specified, then the extension ".b64" is used/expected. |
fmtQP (2) | Quoted-Printable is another MIME format coding only special characters. Mostly used if the text contains special accented characters. If multiple filenames are specified, then the extension ".q_p" is used/expected. |
fmtURL (3) | Encoding of non-printable, 8-bit or unsafe characters as defined in RFC 1738. (No multiple filenames can be specified with this encoding.) |
fmtJIS (4) | Japanese Industrial Standards encoding of Japanese character sets. |
fmtYEncode (5) | Similar to Base64, but uses 8-bit encoding to reduce the amount of data being sent and received. Designed for binaries on the Usenet or Email. |
fmtMD5Hash (6) | The Message Digest 5 hashing algorithm produces a 128-bit hash output. |
fmtSHA1Hash (7) | The Secure Hash Algorithm produces a 128-bit hash output. |
fmtHex (8) | Creates a hexadecimal string representation of the decoded data. |
fmtHTML (9) | Creates an HTML-encoded string. |
fmtHMAC (10) | Creates a Hash-based Message Authentication Code for the given data. To set the key, use HMACKey. To set the hash algorithm to use to create the MAC, use HMACAlgorithm. |
fmtUTF8 (11) | Convert strings to/from UTF-8 to the current code page (Windows only). |
fmtUTF7 (12) | Convert strings to/from UTF-7 to the current code page (Windows only). |
fmtBase32 (13) | Similar to Base64, but uses 32 printable characters. If multiple filenames are specified, then the extension ".b32" is used/expected. |
fmtBase64URL (14) | Base64 encoding for use within URLs. The "+" character is replaced with "-". The "/" character is replaced with "_". The padding character "=" is omitted. |
Data Type
Integer