Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Created April 12, 2013 12:45
Show Gist options
  • Save the-teacher/5371759 to your computer and use it in GitHub Desktop.
Save the-teacher/5371759 to your computer and use it in GitHub Desktop.
smpp coding
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