No.

The actual 8-bit bytes are string/2. These have to be matched against a maximum 
of ~140 octets in an SMS. Remember to use correct coding & charset (read user's 
guide) in your sendsms url.

BR,
Nikos
  ----- Original Message ----- 
  From: Jinson 
  To: Nikos Balkanas 
  Cc: users 
  Sent: Tuesday, January 19, 2010 10:38 AM
  Subject: Re: Count SMS units for Unicode Messages



  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 
      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





Reply via email to