Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How to send unicode sms programatically and receive it on the other side correctly?

Tags:

android

sms

I am using simple code to send sms:

SmsManager.getDefault().
  sendTextMessage(phone, null, "English characters", sentPI, deliveredPI);

And all works fine.

But when I send sms message in russinan language, using this code:

SmsManager.getDefault().
 sendTextMessage(phone, null, "Русский текст", sentPI, deliveredPI);

I receive on the other emulator something like this: *&^#R*)@#_(&)@U(RH#*(&()^

How can I fix it? Please, help.

like image 819
Paul Yakovenko Avatar asked Nov 05 '22 07:11

Paul Yakovenko


1 Answers

This looks like a problem of emulator. I use SmsManager.sendMultipartTextMessage() method for sending Russian text, and no real user report about any problems. Try on real device please.

like image 168
Jin35 Avatar answered Nov 09 '22 03:11

Jin35