Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Sending special characters to sms using Perl

by moritz (Cardinal)
on Oct 23, 2012 at 12:02 UTC ( #1000468=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000468]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2018-06-21 05:11 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.