We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 355713a + 91debbe commit 192a4ebCopy full SHA for 192a4eb
smpplib/gsm.py
@@ -20,7 +20,7 @@ def make_parts(text, encoding=consts.SMPP_ENCODING_DEFAULT, use_udhi=True):
20
encode, split_length, part_size = ENCODINGS[encoding]
21
encoded_text = encode(text)
22
23
- if len(text) > split_length:
+ if len(encoded_text) > split_length:
24
if use_udhi:
25
# Split the text into well-formed parts.
26
esm_class = consts.SMPP_GSMFEAT_UDHI
0 commit comments