IOSOR Learn
SMS Gateway DLR Payload Charset Parity: Gate Before Route Selection
Verify DLR and webhook charset parity before choosing a gateway route, so segment reconciliation, UDH metadata and MO replies stay intact after switchover.
Lead Telecom & Routing Architect · Lausanne, CH
Charset parity is a route gate, not a post-migration fix: each candidate gateway must return DLR and webhook payloads in the same charset your stack uses to reconstruct segments, or reconciliation breaks the moment you switch. Run parity checks on the real payloads before the first production send.
What DLR charset parity actually covers
A DLR is not just a status word. It carries message ids, part counts, UDH-related metadata and sometimes the original text fragment. Parity means the charset declared or implied in the receipt matches the charset your parser expects for every one of those fields. Check three surfaces: the transport declaration (content type or charset parameter), the raw byte layout of coded fields, and the decoded strings your system will later join into segments.
Building the parity test corpus before comparison
Do not test with plain ASCII. Assemble a corpus that forces the failure modes: GSM-7 extension characters, non-GSM accented letters, a Cyrillic message, an emoji-bearing template, a 3-segment concatenated message with UDH, and an MO reply in a non-Latin charset. For each sample record the expected segment count, expected byte length and expected encoding name. Send each sample through a test route and capture the raw DLR and webhook body, not the rendered log line.
Reading receipts, latency and sender gates together
Charset parity tells you whether you can trust the payload; receipt semantics tell you whether you can trust the timing. Record webhook latency percentiles per route because DLRs that arrive after your reconciliation window are effectively missing, and late retries can re-deliver the same receipt in a different encoding. Verify that sender ID and template gates are stable across the corpus, since a gateway that rewrites template variables may also re-encode them.
Scoring routes on reconciliation survival
Score each candidate on a pass or fail basis per corpus item, then aggregate. A route fails if any DLR field decodes differently than your production parser expects, if billed segments inferred from the receipt disagree with your expected count on more than a stated tolerance, or if MO replies arrive in a charset you cannot map without lossy conversion. Weight concatenated and UDH-bearing samples highest, because those are where segment accounting breaks first and where cost disputes originate.
Recording the parity verdict and its expiry
Write the verdict per route with the date, corpus version and the exact fields that passed or failed. Parity verdicts expire: gateways change DLR formats without notice, so set a re-test interval and re-run the corpus after any route configuration change, sender ID change or template update. Keep the failing samples attached so the next reviewer sees the precise byte pattern rather than a summary. A verdict without raw evidence is not usable for route selection.
Start with IOSOR
Trigger the partner comparison from compare encoding routes and filter candidate routes on DLR payload charset parity for your channel and corridor.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
A DLR is not just a status word. A verdict without raw evidence is not usable for route selection (/tools/brief · DLR / webhook).
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.












