IOSOR Learn

Encoding so Finance Sees Billed Segments: GSM-7 vs UCS-2

Learn how GSM-7 and UCS-2 encoding impact SMS segment calculations, PAYG ledger deductions, and financial forecasting inside your white-label CPaaS platform.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

In white-label CPaaS platforms, message encoding dictates unit consumption. Standard GSM-7 encoding allows 160 characters per single segment.

Understanding GSM-7 and UCS-2 Segment Limits

Multi-part messages reduce capacity to 153 characters per segment due to headers. Introducing a single non-GSM symbol forces UCS-2 encoding, dropping single segment capacity to 70 characters and concatenated segments to 67 characters.

Financial Risk of Unintended UCS-2 Character Shifts

Unplanned encoding shifts cause discrepancies between budget projections and balance deductions. An automated OTP or alert containing special characters depletes account credit rapidly. Sending 100,000 messages assuming single GSM-7 segments can jump to 300,000 segments under UCS-2. In a PAYG model, this surge accelerates balance exhaustion, leading to traffic pauses if the balance drops to zero before budget.

Configuring Payload Rules and Webhook Telemetry

To protect PAYG margins, administrators should configure encoding rules at the API gateway level. Automatic transliteration can replace non-GSM characters with standard equivalents prior to dispatch. Custom HTTP webhook callbacks capture segment details from DLR notifications. By inspecting the segment count and encoding fields in real-time DLR payloads, finance and engineering teams track encoding drift per tenant.

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

Mapping Billed Segments to Finance Ledger Deductions

Financial clarity requires direct synchronization between SMS delivery receipts and the platform balance ledger. When an SMS completes delivery, the system calculates final segments and debits the balance. Setting a PAYG floor for new client accounts keeps balance entries positive during onboarding. As monthly volume grows toward a soft review near USD 1,000/month, finance managers refine rate cards and monitor peak usage.

Auditing Real-Time Usage and Unit Reconciliation

Maintaining exact records requires continuous audit between segment usage and financial logs. Platform managers generate monthly balance reports isolating UCS-2 spikes for review.

Related: Prevent Silent Debits When Campaigns Flip Charsets Mid-Send · When the Handset Forces UCS-2, the Invoice Must Match · balance reservation before first debit.

Start with IOSOR

To align your billing engine with actual network consumption, navigate to the IOSOR console and configure your payload rules to log character encoding per outbound payload. Set up webhook telemetry to feed real-time segment counts directly into your finance ledger before balance deductions occur. This ensures that every quoted PAYG unit matches the exact GSM-7 or UCS-2 segment breakdown returned in the delivery receipt (DLR).

IOSOR takeaway

This article proved that financial predictability in CPaaS depends entirely on mapping character encoding directly to PAYG unit quotes rather than treating it as a routing concern. When finance teams can audit the exact split between 160-character GSM-7 segments and 70-character UCS-2 segments, they eliminate margin erosion caused by silent payload shifts.

Do establish strict transliteration rules at the API gateway to prevent accidental UCS-2 conversions from draining client balances. Don't let finance quote flat-rate SMS units without real-time webhook validation of the actual billed segments recorded on the delivery receipts.

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