Android Question Charset and SMS

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hi,

Please, do you have any tip to detect a string's charset ? This to be able to convert or filter the content of a message which will be sent via SMS.

My need : I have to send by SMS, a message which content is provided by an external device. It's length can change. So I split the content by packets of 160 chars and send them. I have tried Erel's sample too.

But sometimes, one SMS is not send. I think to have detected that the message contains some accented characters. On some devices, the same SMS is sent but other phones won't send it. So, I guess that the number of characters for each SMS depends on the original message's encoding.

I already have tried to filter using GetBytes and reencode with BytesToString but with no luck (I could have not understood the use).

Thanks a lot
 
Last edited:

lymey

Active Member
Licensed User
Longtime User
You are right - message length varies depending on the characters/alphabet used, you can find out more here (and other places on the net):
http://en.wikipedia.org/wiki/Short_Message_Service
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…