This guide will help you understand the types of SMS character encoding used at Plivo and how messages are handled when the character limit increases beyond a certain limit. When sending SMS using Plivo, we will encode messages based on the characters used in the message text.
SMS messages sent using Plivo are charged based on the message units each message contains. Therefore, it’s helpful to understand how message units work to estimate your SMS charges. When a message text is too long, your message will be split into multiple message units. Each unit will be 140bytes. The way your message is split will depend on the type of character encoding applied to your message text.
Plivo supports two types of character encoding, namely, GSM(GSM03.38) and Unicode(UCS-2).
This type of encoding applies when characters used in the message text are from within the standard GSM-7 and extended character sets.
GSM-7 characters are seven-bit characters. The calculation of the characters for one SMS unit is as follows:
When the characters are not from the GSM-7 and extended character sets, Plivo will automatically convert to UCS-2 character encoding for the entire message.
UCS-2 characters are 16-bit characters. Therefore, the calculation of the characters for one SMS unit will be:
When you send a long message that contains more than one unit of SMS, the message will be split into multiple units. Message concatenation is the concept of assembling the message with multiple units into a single message at the receiving end. To accomplish this, Plivo segments the long message into multiple units. The segmentation information is added to the User Data Header(UDH) of the payload for each unit of the message.
The character limit of the whole message is based on the type of encoding applied for the message text.
Messages containing only GSM03.38 7-bit characters have a maximum limit of 1600 characters. Messages longer than 160 characters are split into multiple message units, each unit consisting of 153 characters.
Messages containing one or more UCS-2 16-bit unicode characters have a maximum limit of 737 characters. Messages longer than 70 characters are split into multiple message units, each unit consisting of 67 characters.
Insert your SMS Content