http://www.perlmonks.org?node_id=1000468


in reply to Sending special characters to sms using Perl

First of all it seems you are sending SMS using a web-based gateway. So you need to consult the documentation for that gateway.

Secondly I don't understand why .'&coding=2'.'&charset=utf-8' changes the breakup of messages; that should be done only by body lengths, not by the length of the submission URL. And I don't see the significants of length 16; the length limitation for the message body is more around 140 to 155 characters 160 bytes.

As for the special characters that don't work, see how enurl() escape those, and what your SMS gateway provider expects.

Replies are listed 'Best First'.
Re^2: Sending special characters to sms using Perl
by Ombongi.Moraa (Novice) on Oct 23, 2012 at 13:08 UTC
    @moritz - sorry I meant 160 characters not 16; And this is 140 bytes approximately depending on the characters in the sms. Ive implemented what my sms gateway (kannel) advises but as i explained, since these messages are forwarded separately to smsc, they are considered and MT messages and hence the subscriber gets billed for them. that's why im asking for a solution on the perl side.