16

What is the maximum SMS message length when sent through the Clickatell API for English and Spanish messages?

Is there is a difference between English and Spanish message lengths, since Spanish may contain Unicode characters?

marsnebulasoup
  • 2,530
  • 2
  • 16
  • 37
Adam
  • 2,948
  • 10
  • 43
  • 74
  • 2
    If I'm not mistaken it's 140 characters. It's what Twitter based there character limit on as it was a SMS-centric service at first. – Max Steenbergen Feb 14 '14 at 20:27

3 Answers3

24

From the SMS wikipedia page:

Messages are sent with the MAP MO- and MT-ForwardSM operations, whose payload length is limited by the constraints of the signaling protocol to precisely 140 octets (140 octets = 140 * 8 bits = 1120 bits).

Depending on which alphabet the subscriber has configured in the handset, this leads to the maximum individual short message sizes of 160 7-bit characters, 140 8-bit characters, or 70 16-bit characters.

As for your other question:

Is there is a difference between English and Spanish message lengths, since Spanish may contain Unicode characters?

No, there is no difference, as both English and Spanish are completely covered in the 8-bit Latin 1 character set.

marsnebulasoup
  • 2,530
  • 2
  • 16
  • 37
admdrew
  • 3,790
  • 4
  • 27
  • 39
  • 1
    I believe this answer is plain wrong in response to the OP question. This is generic info (from Wikipedia of all places!) relating to a single SMS message segment. I have provided an answer below referencing the Clickatell API guide which I believe gives a maximum of 5355 characters, significantly more than the 160 given here! – Don Jan 19 '15 at 16:29
  • You can't be sure your cell phone is encoding using 8-bit Latin 1 character set – Hernán Eche Feb 10 '16 at 14:08
  • Thats wrong i can sent you message up to 2000 chars. Give me any phone number and check by yourself. – icinema gr Jan 01 '21 at 22:24
8

SMS allows for multiple SMS messages to be strung together (with the length of each reducing to allow for "joining" data). I have experience of sending messages of length of 612 characters (4 SMS messages) - there is a reduction of 7 characters per message segment. On the receiving system the parts may be received out of sequence, with the message only making sense once all parts have been received. The Clickatell API allows this, although their API guide at https://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf recommends a practical maximum of 3 messages it allows up to 35 (see section 4.2.7). So (ignoring unicode for the moment) you can send a message of 35 * 153 = 5355 characters via the Clickatell API. If you are sending unicode characters (which the OP is not) the character count for a single message is 70, reduced by 7 characters for each segment in concatenated message or 63 * 35 = 2205 unicode characters.

Don
  • 2,317
  • 2
  • 16
  • 16
6

SMS messages can contain data of 140 bytes. However, SMS data is sent as a bitstream. This means if you are sending 7 bit ASCII, you can send 160 characters.

David C Adams
  • 1,953
  • 12
  • 12
  • `7 bit ASCII, (Spanish doesn't require Unicode)` is a little misleading, as Unicode and 8-bit aren't mutually inclusive. – admdrew Feb 18 '14 at 15:05