Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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.


Comment on Re: Sending special characters to sms using Perl
Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-07-25 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls