Hi Ghost,
This has been previously answered.
You should use "�" (opening exclamation mark) instead of "!". Anyway, to
be sure this works, try Alejandro's suggestion: take a phone, type all the
special characters in a single message and send it. Check the log file to
see what you get.
Just as a reference, I got these (hope chars don't mess up):
To get -----> send (URI encoded value)
_ -----> � (%A7)
@ -----> � (%A1)
$ -----> � (%A4)
Again, this may depend on your SMSC implementation.
Regards, Rodrigo.
----- Original Message -----
From: "Ghost" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "Rodney Machado" <[EMAIL PROTECTED]>
Sent: Tuesday, January 25, 2005 7:12 AM
Subject: RE: Encoding "at" symbol
> I tried replacing "@" with "!" but I get "!" in the
> text message and not "@". Any suggestions please?
>
> Thanks in advance.
>
>
> --- Rodney Machado <[EMAIL PROTECTED]> wrote:
>
> > What I did to solve that is replace the "@" sign
> > with an "!" character.
> >
> > <code_fragment>
> > if($argc != 3)
> > {
> > echo ("Usage: $argv[0] <phone#1,phone#2,...>".'
> > <"SMS Message">');
> > return 0;
> > }
> >
> > $PHONES= str_replace(",","+","$argv[1]");
> >
> > $sms_text = str_replace("@","!","$argv[2]");
> >
> > </code_fragment>
> >
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > > Behalf Of Ghost
> > > Sent: Jueves, 20 de Enero de 2005 09:48 a.m.
> > > To: [email protected]
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Encoding "at" symbol
> > >
> > >
> > > Hello all,
> > >
> > > I noticed that text gets truncated when at "@"
> > sign is
> > > in the text. Please, how do I get Kannel SMPP
> > gateway
> > > to correctly encode it.
> > >
> > > Waiting for an answer PLEASE!!
> > >
> > > Thanks in advance.
> > >
> > >
> > > =====
> > > Sometimes it rains on the just. I believe that.
> > > Sometimes it rains on the unjust. I believe that
> > too.
> > > Sometimes it just rains,
> > > Neither God nor belief nor justice has anything to
> > do with it.
> > >
> > > The great thing about suicide is that it is not
> > one of those
> > > things you have to do now or you loose your
> > chance. I mean,
> > > you can always do it later.
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - 250MB free storage. Do more. Manage
> > less.
> > > http://info.mail.yahoo.com/mail_250
> > >
> >
>
>
> =====
> Sometimes it rains on the just. I believe that.
> Sometimes it rains on the unjust. I believe that too.
> Sometimes it just rains,
> Neither God nor belief nor justice has anything to do with it.
>
> The great thing about suicide is that it is not one of those things you
have to do now or you loose your chance. I mean, you can always do it
later.
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
>
>