-
-
Notifications
You must be signed in to change notification settings - Fork 143
Closed
Description
I've tried send u'Привет мир!\n'*10 got 4 part message.
But result correct is fit two parts.
Constants
UCS2_SIZE = 70
UCS2_MP_SIZE = UCS2_SIZE - 3
>>> import smpplib.gsm
>>> text = u'Привет мир!\n'*10
>>> len(text)
120
>>> 120 / (70 - 3)
1.791044776119403
>>> parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(text)
>>> len(parts)
4
Looks like it is a result of encoded text is more long.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels