GSM-7 vs. UCS-2 Character Encoding: Why a Single Emoji or Smart Quote Doubles Your SMS Cost
One curly quote, one emoji, one non-breaking space β and a 160-character message silently becomes two 70-character UCS-2 segments. The encoding boundary math that decides your invoice.
A marketing team shipped a two-line promotional SMS that fit β by their character counter β in 154 characters. One segment. The invoice said otherwise: every send billed as two segments, 100% markup, for months. Buried at position 61 was a single curly apostrophe in donβt β U+2019, absent from the GSM 03.38 basic character set β and that one character silently reclassified the entire message from GSM-7 to UCS-2, cutting the per-segment capacity from 160 characters to 70.
Here is the question every sender eventually pays to learn: why does one emoji, one smart quote, or one non-breaking space double what you are charged for an SMS? The head fake is that carriers do not bill characters β they bill segments, and segments are a function of encoding, not length. The encoding decision is binary, message-wide, and almost never surfaced by the composer UI that led you astray. Your text editor counts Unicode code points. The SMSC counts septets or 16-bit units. When those two counts disagree, the invoice follows the SMSC.
What is the actual difference between GSM-7 and UCS-2?
GSM-7 packs each character into 7 bits, fitting 160 characters in the 140-byte SMS payload (or 153 per segment when concatenated). UCS-2 stores each character as 16 bits, fitting only 70 characters single-segment (67 when concatenated). A message uses UCS-2 the moment any character falls outside GSM 03.38 β the whole message, not just the offending character β so one emoji turns a 140-character message into three billed segments instead of one.
The arithmetic behind the numbers is worth internalizing once. The SMS payload is 140 bytes = 1,120 bits. GSM-7 characters are 7 bits each, so 1,120 Γ· 7 = 160 exactly β which is where the famous limit comes from. UCS-2 characters are 16 bits, so 1,120 Γ· 16 = 70. Neither number is arbitrary; both are physics of the 1991 GSM frame meeting modern Unicode text.
| Property | GSM-7 (default alphabet) | UCS-2 / UTF-16 |
|---|---|---|
| Bits per character | 7 (packed) | 16 |
| Single-segment capacity | 160 chars | 70 chars |
| Concatenated capacity | 153 chars/seg | 67 chars/seg |
| Overhead per extra segment | 6-byte UDH β 7 chars | 6-byte UDH β 3 chars |
| Emoji support | No β forces UCS-2 | Yes (surrogate pairs) |
| Typical cost index | 1.0Γ | 2.1β3.4Γ at same length |
Capacity per 140-byte payload. Concatenation reserves a 6-byte User Data Header (UDH: IEI 0x06, length 0x03, reference, total, sequence) β 48 bits. GSM-7 loses 7 septets to it (160 β 153); UCS-2 loses 3 code units (70 β 67).
The extension table adds a second trap inside GSM-7 itself. GSM 03.38 defines a basic set of 123 characters plus an escape-based extension table (ESC = 0x1B) holding ten more β ^ β¬ { } \ [ ] ~ | and form feed among them. Extension characters stay in GSM-7 but consume two septets each, so a message full of euro signs and curly braces can hit the 160-septet boundary without any Unicode character at all. The euro symbol is the classic case: perfectly legal GSM-7, budgeted at two slots, invisible to every naive character counter on earth.
Which everyday characters silently flip a message into UCS-2?
The silent converters are typographic, not pictographic: curly quotes (U+2018βU+201D), en/em dashes (U+2013/U+2014), ellipsis (U+2026), non-breaking space (U+00A0), bullet (U+2022), and every emoji. They arrive from Word, Google Docs, macOS autocorrect, and copy-pasted CMS content β not from deliberate emoji use. One such character anywhere in the body re-encodes the entire message to UCS-2 and the segment count doubles or triples, silently, at billing time.
The provenance matters because teams audit the wrong thing. After a billing spike, someone greps the template for emoji, finds none, and closes the incident. But the culprit was a product name pasted from a press release with a curly apostrophe, or a sign-off rendered by a word processor's smart-quotes feature, or a zero-width space (U+200B) hiding between two words after a bad CSV import. Invisible characters are the worst offenders: they render as nothing, count as one in most editors, and are perfectly legible to the SMSC's encoding detector.
| Character | Code point | Typical source | Effect |
|---|---|---|---|
| β (right single quote) | U+2019 | Smart quotes in Word / iOS | Forces UCS-2 |
| β (em dash) | U+2014 | Marketing copy, CMS editors | Forces UCS-2 |
| (invisible) | U+200B / U+00A0 | Copy-paste, CSV imports | UCS-2 + invisible to editors |
| β¬ (euro sign) | GSM ext. table | Pricing messages | Stays GSM-7, costs 2 septets |
| Γ± / ΓΌ / ΓΆ | Basic set | Names, Spanish/German text | Safe β in GSM-7 basic set |
Note the fourth row: the euro sign is a deliberate design decision from GSM 03.38's extension table, and it proves the rule rather than breaking it β extension characters cost extra septets but keep you in the cheap encoding. The economics reward knowing the actual character set, not memorizing folklore about "special characters."
How do you measure segment cost before you send?
Count segments in three steps: (1) test every character against GSM 03.38 basic + extension tables β any miss switches the message to UCS-2 globally; (2) divide capacity by encoding (160/153 GSM-7 with septet extension costs, or 70/67 UCS-2); (3) bill the result β each segment is one billable unit. Automate this as a pre-send sanitizer in CI, not as a review-time eyeball, because the characters that break budgets are the ones nobody can see.
The sanitizer does two jobs at once. Normalization converts typographic Unicode into ASCII equivalents β a curly quote becomes a straight quote, an em dash becomes a hyphen β which usually flips the message back to GSM-7 without changing what a human reads. The analysis then prices the result, counting extension-table characters as the two septets they actually occupy. Placed as a CI check on message templates, it converts an invoice surprise into a failed build, which is the only genuinely cheap time to catch encoding bugs.
| Body text | Encoding | Segments | Cost at $0.004/seg |
|---|---|---|---|
| 145 chars, plain ASCII | GSM-7 | 1 | $0.0040 |
| 145 chars + one β (U+2019) | UCS-2 | 3 | $0.0120 |
| 145 chars, sanitized (β β ') | GSM-7 | 1 | $0.0040 |
| 80 chars with one emoji | UCS-2 | 2 | $0.0080 |
Same-length comparison at $0.004/segment. Row 2 vs row 3: one invisible reclassification triples the bill β the sanitizer pays for itself on the first send.
Scale that single-message 3Γ to a 500,000-recipient campaign and the typography decision costs $4,000 extra β with zero deliverability benefit, because carriers do not prefer UCS-2 messages or reward you for the richer encoding. It is pure waste, produced by an apostrophe, discovered by an invoice. The same discipline applies to international routing, where per-segment prices vary by an order of magnitude between corridors β the country-level mechanics are covered in our GSM-7 vs UCS-2 copywriting guide and the segment arithmetic in SMS segment math explained.
Run your current templates through the sanitizer above, count the UCS-2 surprises, and put the check in CI before the next campaign ships. Then look at what you are actually paying per segment: SMSRoute bills transparently from $0.004/msg across 149 countries with encoding mode surfaced in the API response, so the segment math is auditable per send rather than reconstructed from invoices.
How do DLT regimes and carrier templates interact with encoding?
In DLT-governed markets like India, the content registry adds a second billing trap on top of the encoding one. TRAI's rules tie registered templates to specific content hashes and variable-slot counts; a template filed with straight apostrophes that the application renders with curly ones may still deliver β content filters are not byte-exact β but every such message bills as UCS-2 segments at whatever the operator's per-segment rate happens to be. The registry does not check your encoding. The invoice does.
The operational fix is to treat the template registry and the sanitizer as one pipeline: normalize every variable substitution through the same ASCII-folding function at render time, so the bytes on the wire match the economics you priced when you designed the campaign. Teams that do this consistently report 15β30% reductions in per-campaign SMS spend in DLT markets, almost entirely from recapturing segments that Unicode typography had silently stolen β the message text a subscriber sees barely changes, because a straight apostrophe reads exactly like a curly one on a lock screen at 60 characters per line.
Is UCS-2 ever the right choice?
Yes β when the content genuinely requires it: CJK scripts, emoji-forward brand voice, or languages outside GSM-7 coverage. The rule is not "never use UCS-2," it is "use it deliberately, with the segment cost computed first." Accidental UCS-2 from a typographic character is the failure mode, not UCS-2 itself.
Do concatenation headers make short messages cheaper?
No β any message over the single-segment limit carries a 6-byte UDH and bills per segment. The only reliable optimization is staying under 160 GSM-7 septets (or 70 UCS-2 code units), which is why the sanitizer normalizes before it counts.
Why does my character counter disagree with the carrier?
Because it counts Unicode code points while the carrier counts septets or UTF-16 code units β and most counters never test for GSM-7 membership at all. If the tool does not show an encoding and a segment count, it is guessing.
The whole discipline fits in one sentence: normalize, analyze, then send. Wire the sanitizer into your template pipeline this week, and when the segment counts drop, keep the savings honest by checking them against per-corridor pricing β /developers documents the encoding field in every send response, and /signup gets you sending with an email address and a crypto top-up, no KYC queue between you and the first test message.
Jacky Hossein
Verified AuthorPrincipal Telecommunications & Cryptographic Systems Architect at SMSRoute. Specializes in carrier-grade SS7/SMPP routing protocols, non-custodial cryptocurrency billing rails, and zero-knowledge telecommunications privacy.