alexandr-mironov / php8-smpp

SMPP Client (v 3.4) on PHP8
7 stars 8 forks source link

Fix for Unicode, UDH, and UCS-2 SMS Parts Handling #17

Open dfangys opened 6 months ago

dfangys commented 6 months ago

Issue Description: While utilizing your package as an SMS API provider in our project, we faced challenges related to SMS segmentation. Notably:

  1. When sending an SMS containing 201 characters that should have logically split into three parts, it was instead being segmented into four parts.

  2. Text corruption occurred in messages of certain lengths (e.g., 71 characters), where the message content was altered, displaying Chinese characters unexpectedly.

Solution and Testing: We have developed a fix for these issues, which has been thoroughly tested over the past three months. Since implementing this modification, the SMS handling has been functioning correctly, with no observed issues in message segmentation or content integrity.