IOSOR Learn

Encoding Fallback Cost Breakpoint Before Send

Pinpoint the exact segment count where GSM-7 to UCS-2 fallback doubles per-message cost so you can compare provider encoding handling and trigger a partner route comparison.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

The GSM-7 to UCS-2 fallback doubles per-message cost at 160 characters for single segments and 153 characters per segment for multi-part messages because UCS-2 uses 70 characters per segment versus 153 for GSM-7. Operators must calculate this breakpoint before send to avoid unexpected spend and compare how providers handle encoding transitions.

Character Set Thresholds

GSM-7 supports 160 characters in a single segment and 153 per segment when concatenated. UCS-2 drops to 70 and 67 respectively. Any character outside the GSM-7 basic set — emojis, Cyrillic, accented Latin — forces the entire payload into UCS-2. This means a 161-character GSM-7 message becomes two UCS-2 segments at 70 characters each, instantly doubling the segment count and cost.

Segment Math Verification

Validate segment counts using the formula: ceiling(character_count / segment_limit). For GSM-7 multi-part the limit is 153; for UCS-2 it is 67. A 320-character GSM-7 message uses 3 segments (320/153=2.09→3). The same payload in UCS-2 uses 5 segments (320/67=4.78→5). Providers that auto-detect encoding per segment versus per message produce different bills — test with DLR receipts to confirm actual segment counts charged.

Provider Encoding Handling Differences

Some gateways split encoding per segment; others enforce a single encoding for the entire concatenated message. Send test payloads with a single non-GSM character at position 154 and measure segment counts via webhook DLR callbacks. Providers returning 2 segments for a 154-char payload with one UCS-2 char are splitting per segment. Those returning 3 segments enforce message-level fallback. Document each partner behavior in your routing table.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

Cost Impact Modeling

Model cost per corridor: (segments × partner_rate) + MRC. At $0.0075 per segment, a 320-char GSM-7 message costs $0.0225 (3 segs). Forced UCS-2 raises it to $0.0375 (5 segs) — a 67% increase. Multiply by monthly volume to quantify exposure. Include webhook latency variance in the model; delayed DLRs can mask encoding mismatches until invoices arrive.

Pre-Send Gate Checklist

Implement a pre-send gate that: (1) scans payload for non-GSM-7 characters, (2) calculates segment count under both encodings, (3) flags messages where UCS-2 segments exceed GSM-7 segments by ≥1, (4) routes flagged messages to a review queue or auto-truncates to GSM-7 safe length. Log every gate decision with payload hash, segment projection, and chosen route for audit.

Start with IOSOR

Compare verified partner routes for your channel and corridor using the route comparison tool. Cross-reference encoding behavior, segment billing, and DLR fidelity before committing volume. See also: Encoding Limit Gate Before Send, Encoding Overhead Cost Gate, GSM-7 Extension Table Cost Compliance Boundary Check.

IOSOR takeaway

GSM-7 supports 160 characters in a single segment and 153 per segment when concatenated. Log every gate decision with payload hash, segment projection, and chosen route for audit (/tools/brief · DLR / webhook).

Was this guide helpful?

Related guides

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers