Android Question Starnge SMS behaviour

boten

Active Member
Licensed User
Longtime User
I'm trying to send sms msgs that contain Hebrew text and a link.
When the link is long and contains directory name the msg just won't be sent (even when using SendLargeSms,tho the msg is shorter than 160 chars.)

my sms text look something like:

<some hebrew text> http://somesitename.com/somedirectory/somefilename.html

Any Hebrew users encountered this kind of behaviour?
 

boten

Active Member
Licensed User
Longtime User
long english msg + link works
long hebrew msg (no link) works with SendLargeSms
long hebrew msg + link does NOT work, even with SendLargeSms

I attach a sample project. Change the phone number in Sub btn_Click (about line #60)
 

Attachments

  • asms.zip
    6.5 KB · Views: 122
Upvote 0

boten

Active Member
Licensed User
Longtime User
Tried:
B4X:
url="http://www.somewhereover.com/therainbow/figsfly.html"
Dim su As StringUtils
enc="UTF8"
urle = su.EncodeUrl(url, enc)

the hebrew+link was NOT sent
english + link was sent but the link was:
http%3A%2F%2Fwww.somewhereover.com%2Ftherainbow%2Ffigsfly.html

which came out even worse in SMS (not entirely as link)

same result when encoding with ISO-8859-8 and with windows-1255
 
Last edited:
Upvote 0

boten

Active Member
Licensed User
Longtime User
So far the only solution is sending 2 sms msgs. 1st with the hebrew text, 2nd with the link. Not beautiful but unless this issue is solved - this will have to do for now
 
Upvote 0

boten

Active Member
Licensed User
Longtime User
Can any hebrew user test my sample project (asms) and verify this problem, hopefully suggesting a solution
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…