Send the message containing an underscore: 5F vs 11

Smpp v3.4 client

Moderator: alt

Locked
KonstOne
Posts: 7
Joined: Fri Sep 26, 2008 7:31 am

Send the message containing an underscore: 5F vs 11

Post by KonstOne » Tue Sep 08, 2009 11:01 am

I try to send the message containing an underscore, but it is transferred in the wrong coding.

Code: Select all

Dim sm As SubmitSm
Dim Message as String = "test _ test"
sm = New SubmitSm
            sm.Command = CommandSet.SubmitSm
            sm.DataCoding = ALT.SMS.DataCodings.Default
            sm.DestAddr = DestAddr
            sm.DestNpi = Convert.ToByte(DestNpi)
            sm.DestTon = Convert.ToByte(DestTon)
            sm.SrcAddr = SrcAddr
            sm.SrcNpi = Convert.ToByte(SrcNpi)
            sm.SrcTon = Convert.ToByte(SrcTon)
            sm.RegisteredDelivery = RegisteredDelivery
sm.ShortMessage = Message
ret = ObjSmppClient.Submit(sm)
GSM default alphabet (7 bit)
0x11 17 LOW LINE _

I receive the following code at sending: 0x5F :!:

Whether this error will be corrected?
KonstOne
Posts: 7
Joined: Fri Sep 26, 2008 7:31 am

Post by KonstOne » Wed Sep 23, 2009 12:10 pm

:?:
Whether this error with an incorrect code will be corrected?

Thanks in advance.
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Sun Sep 27, 2009 6:40 pm

Can you try to send with DataCoding
ALT.SMS.DataCodings.Latin1 or
ALT.SMS.DataCodings.UCS2 ?

Realy SMPP client never use GSM coding. Conversion to GSM is performed only on SMSC side.
Depending on the chosen ESME data coding the short message text data is send from the SMSC to the mobile in one of the following ways:
• Transparently
• Mapped to the default GSM alphabet
When text is send from ESME to SMSC in USC2 coding the data will be transparently send to the mobile.
When the text is coded for example in LATIN-1 or the SMSC Default Alphabet, usually a mapping will be performed by the SMSC to the GSM Default Alphabet before sending the text to the mobile. As the GSM Default Alphabet is 7-bit coded and uses other codes for some characters and in some cases does not even provide a certain character, this implies that during the mapping process not every character can be mapped one-to-one.
KonstOne
Posts: 7
Joined: Fri Sep 26, 2008 7:31 am

Post by KonstOne » Mon Sep 28, 2009 7:50 am

Thanks. We will work in other coding.
Locked