special character in English

.NET library for SMPP protocol
Post Reply
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

special character in English

Post by robindas » Wed Jan 17, 2018 1:22 pm

Hi,

When i am using default encoding special charter were displaying as ? in English.
and if i use latin1 special character were proper but unable to get long concatenated message of more than 160 character.

Please Please help which data encoding shall i use?

thanks
Robin das
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

Re: special character in English

Post by robindas » Wed Jan 17, 2018 5:08 pm

Please Please help me in sending special character in long sms more than 160 character as default encoding does not support special character and latin1 encoding in not sending long msg using

client.Submit(
SMS.ForSubmit()

Please please help.
alt
Site Admin
Posts: 742
Joined: Tue Apr 25, 2006 9:45 am

Re: special character in English

Post by alt » Wed Jan 17, 2018 5:17 pm

Hi

Which special character did you mean?
Possible it doesn't exist in the GSM 03.38 table. https://en.wikipedia.org/wiki/GSM_03.38

Library supports 3 types of concatenation parameters. SMS Builder classes creates ready to send SubmitSm instances, but you need to specify which way do you want to use.
Please find out which concatenation parameter you should use with your provider.
https://docs.inetlab.com/smpp/articles/ ... ation.html
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

Re: special character in English

Post by robindas » Wed Jan 17, 2018 5:29 pm

sir,
a basic special character like '@' in long sms i.e more than 160 character
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

Re: special character in English

Post by robindas » Wed Jan 17, 2018 5:35 pm

sir,

a basic special character like '@' in long sms i.e more than 160 character.


here is my code

DataCodings submitDataCoding = DataCodings.Default;

bool isunicode = bool.Parse(reader[4].ToString());
if (isunicode == true)
{
submitDataCoding = DataCodings.UCS2;
}


IList<SubmitSmResp> responses = client.Submit(
SMS.ForSubmit()
.Text(reader[3].ToString())
.From(reader[1].ToString())
.To("91" + reader[2].ToString())
.Coding(submitDataCoding)

.DeliveryReceipt()

);

Thanks
Robin das
alt
Site Admin
Posts: 742
Joined: Tue Apr 25, 2006 9:45 am

Re: special character in English

Post by alt » Wed Jan 17, 2018 5:52 pm

If DataCoding.Default doesn't work with you provider, you can change corresponding .NET encoding like described here:
https://docs.inetlab.com/smpp/articles/ ... oding.html

It is provider specific configuration. You should ask them some questions:
- Which DataCoding to use.
- Which character table (Encoding) should be used for DataCoding.
- Which concatenation parameters should be used.

I cannot give you correct advice without this information.
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

Re: special character in English

Post by robindas » Wed Jan 17, 2018 6:50 pm

sir really thanks for reply.

I had forwarded the queries to the smpp provider and will share with you asap i get it.

just to bring your notice when i am using coding as latin1 i am able to send special character successfully. but at a same time when i am sending a long msg i.e more than 160 char using
https://docs.inetlab.com/smpp/articles/ ... arted.html .

The complete long message does not getting delivered to the handset.

THanks
Robin das
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

Re: special character in English

Post by robindas » Thu Jan 18, 2018 3:47 am

Dear sir,

Got the following answer from smpp provider

- Which DataCoding to use.
- Which character table (Encoding) should be used for DataCoding.
- Which concatenation parameters should be used.


1.DataCoding to use is ASCII
2.You have to pass parameter concat=1, in case of multipart messages through SMPP.
We are not clear with your concern for character table (Encoding) should be used for DataCoding. Please elaborate for the same.

Please please help with proper setting.

Thanks
Post Reply