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.
Thank you in advance.
On Nov 8, 11:02 am, "Aryo Sanjaya" <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 8, 2008 at 9:19 AM, nchin <[EMAIL PROTECTED]> wrote:
>
> > Also, is there any plan to provide a get method to return the no. of
> > parts? Like: -
> > int part = getNumberOfParts(String message);
>
> As far as I know, the formula is like this:
>
> if length(string) <= 160 then
> sms_count = 1
> else
> sms_count = floor( length(string) / 153 ) + 1
> end if
>
> CMIIW
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---