It is because you are using UCS-2 charset; which is an 8bit charset. You can send 140chars using 7bit charsets, Remove charset configs from ulr and dont translate utf to ucs and you will be able to send more than the 67 chars.
btw, kannel uses internally utf-8 |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Fri, Apr 8, 2011 at 2:18 AM, [email protected] <[email protected]> wrote: > > i have wrttien PHP function to send sms, but it only send 67 characters. > please help me. > > function sendsms($message,$to) > { > $url = > '/cgi-bin/sendsms?username=kannel&password=xxxxx&&charset=UCS-2&coding=2' > . "&to={$to}" > . '&text=' . urlencode(iconv('utf-8', 'ucs-2', $message)); > $results = file('http://localhost:13013'.$url); > } > -- > View this message in context: > http://old.nabble.com/URL-encoding-error-in-sms-sending-by-Php-Script-tp31349279p31349279.html > Sent from the Kannel - User mailing list archive at Nabble.com. > > >
