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.
Lead Telecom & Routing Architect · Lausanne, CH
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.
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
- Encoding Route Selection: Verify Charset Cost Bands Before You Commit
Pick an SMS or email route only after charset handling and segment billing match your payload mix. Verify cost bands and DLR charset consistency before volume.
- UDH Reference Lifecycle Reconciliation Across Multipart Routes
Verify how each multipart route allocates, reuses, and expires UDH reference numbers, then compare partner behavior when collisions or exhaustion threaten reassembly and billing.
- UDH Concatenation Reference Window Exhaustion: Pre-Send Gate and Route Comparison
Decide if your SMS route survives multipart UDH reference windows: pre-send gate checks, DLR segment accounting, and partner route comparison via /tools/brief.












