TwilioDevEd / message-segment-calculator

JS-based tool to calculate and display message segmentation data for a given message body
https://twiliodeved.github.io/message-segment-calculator/
MIT License
85 stars 35 forks source link

Fix gsm special chars calculation #20

Closed vernig closed 2 years ago

vernig commented 2 years ago

Some GSM-7 characters (e.g. ]) requires 14bits to be encoded (so to characters units). When the SMS is encoded using UCS-2, these special characters requires 16 bits, exactly as the normal GSM-7 characters.

This PR fixes the size in bits to 16 for all GSM-7 characters when the encoding is set to UCS-2

Fix #18

vernig commented 2 years ago

:tada: This PR is included in version 1.1.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: