Version
Encoding
public enum Encoding
Extends Enum<Encoding>
Represents the character encoding types used in SMS message payloads as defined by the SMPP protocol. Each constant corresponds to a specific data coding scheme used for interpreting message content.
Enum Constants:
| Constant | Description |
| DEFAULT | Default encoding, typically GSM 7-bit. |
| IA5 | IA5 (International Alphabet No.5) encoding, equivalent to ASCII. |
| OCTET_UNSPECIFIED_1 | Octet-aligned encoding, unspecified interpretation (variant 1). |
| ISO_8859_1 | ISO 8859-1 (Latin-1) Western European encoding. |
| OCTET_UNSPECIFIED_2 | Octet-aligned encoding, unspecified interpretation (variant 2). |
| JIS | Japanese Industrial Standards encoding. |
| CYRLLIC | Cyrillic character encoding. |
| LATIN_HEBREW | Latin/Hebrew character encoding. |
| UTF_16 | Unicode UCS2 (UTF-16) encoding, used for extended character sets. |
| PICTOGRAM | Pictogram message encoding (used for symbols/icons). |
| ISO2022JP | ISO-2022-JP, used for Japanese email text. |
| RESERVED_1 | Reserved value, not in use. |
| RESERVED_2 | Reserved value, not in use. |
| JISX | JIS X 0208, Japanese character set. |
| KS_C | Korean KS C 5601 character set. |
Methods:
| public static Encoding[] values() | Returns an array of all declared constants in declaration order. |
| public static Encoding valueOf(String name) | Returns the enum constant with the specified name. |
| public static Encoding fromInt(int i) | Converts an integer code to the corresponding Encoding enum constant. |
| public int getValue() | Returns the numeric value associated with the encoding type. |
Methods inherited from class java.lang.Enum |
|
| compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | |
Methods inherited from class java.lang.Object |
|
| getClass, notify, notifyAll, wait, wait, wait | |
Sign in to read the full article
Start innovating with Mobius
What's next? Let's talk!
