pub fn gsm_7bit_encode(text: &str) -> Result<Vec<u8>, String>Expand description
Encodes text into GSM 7-bit packed format (unpacked representation).
Returns an error if the text contains characters not supported by GSM 03.38.
ยงExamples
use smpp_codec::encoding::gsm_7bit_encode;
let encoded = gsm_7bit_encode("Hello").unwrap();
assert_eq!(encoded.len(), 5);