Title: Sending big russian text makes message improperly encoded · Issue #53 · python-smpplib/python-smpplib · GitHub
Open Graph Title: Sending big russian text makes message improperly encoded · Issue #53 · python-smpplib/python-smpplib
X Title: Sending big russian text makes message improperly encoded · Issue #53 · python-smpplib/python-smpplib
Description: Hello. I have service which sends SMS messages and will accept parameters via SMPP I'm using this lines of code to send message: parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(text) client = smpplib.client.Client(sms_host, ...
Open Graph Description: Hello. I have service which sends SMS messages and will accept parameters via SMPP I'm using this lines of code to send message: parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(text) c...
X Description: Hello. I have service which sends SMS messages and will accept parameters via SMPP I'm using this lines of code to send message: parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(tex...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/issues/53
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sending big russian text makes message improperly encoded","articleBody":"Hello.\r\n\r\nI have service which sends SMS messages and will accept parameters via SMPP\r\n\r\nI'm using this lines of code to send message:\r\n\r\n parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(text)\r\n\r\n client = smpplib.client.Client(sms_host, sms_port)\r\n\r\n client.set_message_sent_handler(\r\n lambda pdu: sys.stdout.write('sent {} {}\\n'.format(pdu.sequence, pdu.message_id)))\r\n client.set_message_received_handler(\r\n lambda pdu: sys.stdout.write('delivered {}\\n'.format(pdu.receipted_message_id)))\r\n\r\n client.connect()\r\n client.bind_transceiver(system_id=system_id, password=password)\r\n\r\n for part in parts:\r\n pdu = client.send_message(\r\n source_addr_ton=5,\r\n source_addr_npi=0,\r\n # Make sure it is a byte string, not unicode:\r\n source_addr=source_addr,\r\n\r\n dest_addr_ton=1,\r\n dest_addr_npi=1,\r\n # Make sure thease two params are byte strings, not unicode:\r\n destination_addr=dest_addr,\r\n short_message=part,\r\n\r\n data_coding=encoding_flag,\r\n esm_class=msg_type_flag,\r\n registered_delivery=True,\r\n )\r\n\r\nWhen I try to send russian or any cyrrillic text, SMS service sends me that kind of text:\r\n\r\n Привеееет привввввееееееееет прип�䀄㠄㼄䀄㠄㈄㈄㈄㈄㈄㈄㈄㔄㔄㔄㔄㔄㔄䈄䈄䈄䈄䈄䰄䰄䰄䰀 䴄䈄㸀 㐄�лгий дооолги и оченнь доооолги т�㔄㔄㔄㨄䄄䈀 㐄㬄伀 㼄䀄㸄㈄㔄䀄㨄㠀 㼄䀄㸄㈄㔄䀄㨄 䄄㠄䄄䈄�мы система вклбченр вы йцк нужн� 㨄㬄〄㈄ 㤄䘄䌄㨄㔄�\r\n\r\nThe interesting thing is that some parts are correct and some parts become weird chineese symbols.\r\n\r\nWhy this is happening?","author":{"url":"https://github.com/SuperMasterBlasterLaser","@type":"Person","name":"SuperMasterBlasterLaser"},"datePublished":"2018-07-10T12:18:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/53/python-smpplib/issues/53"}
| 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:a0f80259-2160-2b82-141c-42c73f7bba3b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB40:ECB80:1EC6955:2B16094:696F61D9 |
| html-safe-nonce | 0b999fa757cd17cf0e74782782ed6789b7fc92f2cbf6c4807b4e33e31f096a57 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjQwOkVDQjgwOjFFQzY5NTU6MkIxNjA5NDo2OTZGNjFEOSIsInZpc2l0b3JfaWQiOiIzNTkyNDc0ODY2MjE3ODY5Nzg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e07f35d1903335cdef9d4265cf28a6038719839cafcdc81349cb5890da42350f |
| hovercard-subject-tag | issue:339817009 |
| 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/53/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1eaa33bf6b7882b2cbbc5709e177a4c0fb1d03dcddbf012abb8d2f6283affa4/python-smpplib/python-smpplib/issues/53 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1eaa33bf6b7882b2cbbc5709e177a4c0fb1d03dcddbf012abb8d2f6283affa4/python-smpplib/python-smpplib/issues/53 |
| og:image:alt | Hello. I have service which sends SMS messages and will accept parameters via SMPP I'm using this lines of code to send message: parts, encoding_flag, msg_type_flag = smpplib.gsm.make_parts(text) c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SuperMasterBlasterLaser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 774d0922d2c4577043d2dab90427344eb4c6ce1d5579acb1dd504cff1a7e46f8 |
| 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 | 650acea592f12d1bd8931d44546c209e0b06ed6e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width