Skip to content

Fix GSM-7 to UTF-8 conversion and updated unit tests

This MR fixes the logic that converts from GSM-7 to UTF-8 when the packed GSM-7 contains a last byte with one single bit from the last septet, and 7 additional bits set to 0 (forming a padded additional septet set to 0x00).

The MR also updates the unit tests to perform UTF-8 -> packed GSM-> UTF-8 conversions. The unit test with the default GSM-7 charset was failing due to the issue with the 0x00 septet referenced before.

Merge request reports