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
89 stars 35 forks source link

Fix GSM-7 extended characters count #22

Closed alexisbcc closed 2 years ago

alexisbcc commented 2 years ago

This PR fixes an issue when especial GSM-7 characters from the extended group are counted incorrectly as a single character for GSM-7 encoding. The character from the "Basic Character Set Extension" uses the ESC character increasing the character count to two, UCS-2 doesn't need change. Screen Shot 2022-01-13 at 8 53 44 AM Screen Shot 2022-01-13 at 8 54 07 AM

Changes: