This is HEX code .

e0b487e0b4a4e0b58d20e0b48ee0b4a8e0b58de0b4b1e0b58620e0b486e0b4a6e0b58de0b4afe0b4a4e0b58de0b4a4e0b58620e0b4b8e0b4a8e0b58de0b4a6e0b587e0b4b6e0b482

So just length of this string / 4 will count the actual characters ?
--------
Thanks
Jinson Abraham
MobME Wireless Solutions Pvt. Ltd
Cochin
+91 4846492646


MobME storms into Emerging 50 Companies in India by Nasscom



2010/1/19 Nikos Balkanas <n...@amdtelecom.net>

>  I don't know how you make your php script. But if you convert everything
> to binary (i.e. hex) just read off the bytes.
>
> PS: There is no ASCII value for hindi chars!
>
> BR,
> Nikos
>
> ----- Original Message -----
>  *From:* Jinson <jin...@mobme.in>
> *To:* Nikos Balkanas <n...@amdtelecom.net>
> *Cc:* users <users@kannel.org>
> *Sent:* Tuesday, January 19, 2010 9:10 AM
> *Subject:* Re: Count SMS units for Unicode Messages
>
> So just counting the chars in my incoming hindi text * 2 will get the
> number characters for sending sms?
>
>
> Im doing the conversion like this in php.
> 1. get the numeric ascii value of the letter
> 2. convert it to hex and add a percent (%)
>
>
> --------
> Thanks
> Jinson Abraham
> MobME Wireless Solutions Pvt. Ltd
> Cochin
> +91 4846492646
>
>
> MobME storms into Emerging 50 Companies in India by Nasscom
>
>
>
> 2010/1/19 Nikos Balkanas <n...@amdtelecom.net>
>
>>  Hi,
>>
>> Each unicode character counts as 2 regular chars. That is, unicode chars
>> above the regular ASCII (hindu chars for example).
>>
>> BR,
>> Nikos
>>
>> ----- Original Message -----
>>  *From:* Jinson <jin...@mobme.in>
>> *To:* users <users@kannel.org>
>> *Sent:* Tuesday, January 19, 2010 8:39 AM
>> *Subject:* Count SMS units for Unicode Messages
>>
>> Hello Group,
>>
>> How do we count SMS units for a unicode message?
>>
>> Suppose I want to submit Hindi Messages from a PHP script, how do I
>> calculate the number for characters and units consumed?
>> --------
>> Thanks
>> Jinson Abraham
>>
>>
>

Reply via email to