Skip to content

function make_parts_encoded work not correct #49

@redjoe

Description

@redjoe

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions