Unicode/UCS2 is two-bytes per char! Unicode max message length is 70 chars - you should take this into account in your calculations.
2008/11/11 Aryo Sanjaya <[EMAIL PROTECTED]> > > > On Mon, Nov 10, 2008 at 12:35 AM, nchin <[EMAIL PROTECTED]> wrote: > >> >> Aryo, thank you for your assistance. >> >> Correct me if I am wrong, based on your formula, if the encoding is >> Unicode/UCS2, then the formula should be:- >> if length(string) <= 140 the >> sms_count = 1 >> else >> sms_count = floor( length(string) / (140-7) ) + 1 >> endif >> >> Am I right? I will be grateful if you could help clarify. > > > Sorry for the late response. > > I have no idea how concatenated SMS is implemented on Unicode. Sorry. > > But I think the formula will be different, not just subtract it with 7 > chars. > > As Thanasis said, PDU will get 4-6 bytes per part as an information. Since > Unicode has different character wide (8 bits instead of 7), so I think it > will not take 7 chars as on 7-bits SMS. Maybe fewer. > > It's only my opinion, without any references :) > > -- > Best Regards, > > Aryo Sanjaya > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib Users Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
