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 To: Nikos Balkanas Cc: users 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 To: users 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