Expand description
Encoding and decoding utilities (GSM 7-bit, etc.).
§Content Encoding/Decoding Module
This module contains encoding/decoding logic for message content
Enums§
- Message
Body - Represents the body of a Short Message, either Text or Binary.
Functions§
- decode_
8bit - Decodes 8-bit Latin1 (ISO-8859-1) data into a String.
- decode_
16bit - Decodes 16-bit UCS-2 (Big Endian) data into a String.
- encode_
8bit - Encodes text into 8-bit Latin1 (ISO-8859-1). Replaces unsupported characters with ‘?’.
- encode_
16bit - Encodes text into 16-bit UCS-2 (Big Endian).
- gsm_
7bit_ decode - Decodes GSM 7-bit data (unpacked) into a String.
- gsm_
7bit_ encode - Encodes text into GSM 7-bit packed format (unpacked representation).
- process_
body - Processes the raw message body based on Data Coding Scheme (DCS) and UDHI flag.
Returns a
MessageBodywhich is eitherText(if decodable) orBinary.