Tab character in the message

.NET library for SMPP protocol
Locked
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Tab character in the message

Post by prog019 » Sat Aug 18, 2012 8:35 am

Dears,

How I can send SMS with body, containing TAB character?

When I'm trying send SMS with TAB character, I get Ç (Ç) character in Mobile phone.
alt
Site Admin
Posts: 918
Joined: Tue Apr 25, 2006 9:45 am

Re: Tab character in the message

Post by alt » Wed Aug 22, 2012 6:19 pm

Could you please try to map default data_coding to another .NET encoding using code

client.MapEncoding(DataCodings.Default, Encoding.ASCII);

also you can try to send message text in DataCodings.UCS2, but it affects sms segments number for long text.
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Re: Tab character in the message

Post by prog019 » Fri Aug 24, 2012 6:21 am

Dear Alt,

I need to send messages with length more than 120 chars, and I'm can't use UCS2.

I was try to send in ASCII and UTF8, but the result is same.

client.MapEncoding(DataCodings.Default, Encoding.ASCII);

or

client.MapEncoding(DataCodings.Default, Encoding.UTF8);

Please reply.
alt
Site Admin
Posts: 918
Joined: Tue Apr 25, 2006 9:45 am

Re: Tab character in the message

Post by alt » Fri Aug 24, 2012 7:11 am

What data_coding do you use when sending SubmitSm?
Sometimes SMSC requires to use another data_codding such as Latin1.
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Re: Tab character in the message

Post by prog019 » Fri Aug 24, 2012 7:51 am

Dear Alt,

Thank you for your reply.

I'm using Default data coding:

<add key="SMPP_DATA_CODING" value="Default"/>
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Re: Tab character in the message

Post by prog019 » Fri Aug 24, 2012 7:54 am

Dear Alt,

I'm trying with DataCoding.Latin1, but results are the same.
alt
Site Admin
Posts: 918
Joined: Tue Apr 25, 2006 9:45 am

Re: Tab character in the message

Post by alt » Fri Aug 24, 2012 8:05 am

Could you ask SMSC technician what setting you should use to send TAB character.
Possible they always convert text to GMS encoding where TAB is Ç (&#199;)
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Re: Tab character in the message

Post by prog019 » Fri Aug 24, 2012 12:14 pm

Dear Alt,

Thank you very much.
Locked