Title: function make_parts_encoded work not correct · Issue #49 · python-smpplib/python-smpplib · GitHub
Open Graph Title: function make_parts_encoded work not correct · Issue #49 · python-smpplib/python-smpplib
X Title: function make_parts_encoded work not correct · Issue #49 · python-smpplib/python-smpplib
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)...
Open Graph 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'...
X 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 >&g...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/issues/49
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"function make_parts_encoded work not correct","articleBody":"I've tried send `u'Привет мир!\\n'*10` got 4 part message.\r\nBut result correct is fit two parts.\r\n\r\nConstants\r\n```\r\nUCS2_SIZE = 70\r\nUCS2_MP_SIZE = UCS2_SIZE - 3\r\n```\r\n\r\n```\r\n\u003e\u003e\u003e import smpplib.gsm\r\n\u003e\u003e\u003e text = u'Привет мир!\\n'*10\r\n\u003e\u003e\u003e len(text)\r\n120\r\n\u003e\u003e\u003e 120 / (70 - 3)\r\n1.791044776119403\r\n\u003e\u003e\u003e parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(text)\r\n\u003e\u003e\u003e len(parts)\r\n4\r\n```\r\n\r\nLooks like it is a result of encoded text is more long.","author":{"url":"https://github.com/redjoe","@type":"Person","name":"redjoe"},"datePublished":"2018-05-22T21:52:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/49/python-smpplib/issues/49"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:badc67cc-bfda-15f9-efe3-84973f81b0cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AE4:2105AF:39AF11E:4D34B71:696F1F03 |
| html-safe-nonce | a5b098807658f039ec59b823e0aa3aa801cddf948cc64ed2d07e9bbde1bd7b0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUU0OjIxMDVBRjozOUFGMTFFOjREMzRCNzE6Njk2RjFGMDMiLCJ2aXNpdG9yX2lkIjoiODEzNzAyOTgxOTk1OTI4NzU1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a371c98bf61cac577f65cb189ec694e3b06ad4a324c52f2729c9ab6be8c48f1 |
| hovercard-subject-tag | issue:325476959 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-smpplib/python-smpplib/49/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c28574d7f3a4a4399131b8659c6d7f1c2b28aed4890b40cebd95b125a70fd73e/python-smpplib/python-smpplib/issues/49 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c28574d7f3a4a4399131b8659c6d7f1c2b28aed4890b40cebd95b125a70fd73e/python-smpplib/python-smpplib/issues/49 |
| og:image:alt | 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'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | redjoe |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/python-smpplib/python-smpplib git https://github.com/python-smpplib/python-smpplib.git |
| octolytics-dimension-user_id | 45378833 |
| octolytics-dimension-user_login | python-smpplib |
| octolytics-dimension-repository_id | 9441405 |
| octolytics-dimension-repository_nwo | python-smpplib/python-smpplib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9441405 |
| octolytics-dimension-repository_network_root_nwo | python-smpplib/python-smpplib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width