• 228 destinations
  • No KYC, ever
  • Bitcoin, Monero, USDT and 4 more

Encoding and length

GSM extended characters

GSM extended characters are the few symbols (such as €, [, ], {, }, \, ^, |, ~) that the 7-bit alphabet encodes with an escape, so each one counts as two characters toward the 160 limit.

The GSM-7 basic table has 128 positions, and one of them is an escape code. A character written as the escape followed by a second code is looked up in an extension table instead, which is how the alphabet reaches symbols it has no room for. The message stays in GSM-7, with no switch to Unicode, but each of these characters takes two of the 160 positions in a single SMS, or of the 153 in each part of a longer one.

The set is small: the euro sign, square brackets, braces, the backslash, the caret, the pipe and the tilde, plus a form-feed control code that ordinary messages do not use. They tend to hide in prices, order references, templates and anything copied from code, and the GSM-7 vs Unicode guide shows where. A message with three euro signs is three characters longer than it looks, and a text of exactly 160 visible characters with one bracket in it is two segments.

Take a hypothetical receipt of 158 visible characters that includes a price with a € sign and an order reference in square brackets. It counts 161 positions and goes out as two segments, 153 and 8. Replace the brackets with parentheses, which are in the basic table, and it counts 159: one segment, half the price.

The misunderstandings are predictable:

  • Counting characters instead of positions, the trap described above.
  • Assuming an extended character forces Unicode. It does not; it only costs a second position.
  • Expecting exact boundaries in long messages. Systems generally avoid splitting an escape sequence across two parts, so a part with one at its end can hold 152 characters instead of 153.

At SMSMeteor: the extension characters ^ { } \ [ ] ~ | € count as two characters in the composer's counter and in the segments value the API returns, and a message that contains them stays in GSM-7.

Go further

See the term in practice.An email address opens the account, the rate card is public, payment is crypto, the test key is free.
Start sending