Created
April 12, 2013 12:45
-
-
Save the-teacher/5371759 to your computer and use it in GitHub Desktop.
smpp coding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message = text.encode("UTF-16BE").force_encoding("BINARY") | |
Gateway.send_mt(sender, receiver, message, data_coding: 8) | |
message = pdu.short_message.force_encoding('UTF-16BE').encode('UTF-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment