Missing Question Mark using DataCodings.Default

.NET library for SMPP protocol
Locked
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Missing Question Mark using DataCodings.Default

Post by NickAskew » Mon Oct 24, 2011 4:53 pm

Hi Alt,

(Using Inetlab.SMPP v1.0.11.1)

I am using the coding [DataCodings.Default] within [SmppClient.PrepareSubmit] to send the following message:

TEST []{}?@'-_!£$%^&*()_-=+,./<>|\àèïôû TEST

The handset receives:
TEST []{}@'-_!£$%^&*()_-=+,./<>|\àèïôû TEST

It is missing the ? character. Could this be an issue with your encoder or should I be using a different coding set?

Regards

Nick
ProcessFlows UK Ltd
http://www.processflows.co.uk/
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Missing Question Mark using DataCodings.Default

Post by alt » Mon Oct 24, 2011 5:49 pm

Hi Nick,

by default SmppClient has
MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMEncoding());

can you try
client.MapEncoding(DataCodings.Default, Encoding.Default);
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: Missing Question Mark using DataCodings.Default

Post by NickAskew » Mon Oct 24, 2011 6:39 pm

Using:
MapEncoding(DataCodings.Default, System.Text.Encoding.Default)

The message received at the handset is now missing the following characters:
[]{}^|\:

(the question mark was displayed though!)
ProcessFlows UK Ltd
http://www.processflows.co.uk/
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: Missing Question Mark using DataCodings.Default

Post by NickAskew » Mon Oct 24, 2011 6:48 pm

Further information:

I used the original [DataCodings.Default], but encoded the message using my own GSMEncode function and passed the bytes to [SmppClient.PrepareSubmit], the received message correctly displayed the ? character as well as all the other characters - could this character have been missed off of your internal GSMEncode function? (I don't have the source code for this version (v1.0.11.1) so I cannot check)

Thanks
Nick
ProcessFlows UK Ltd
http://www.processflows.co.uk/
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Missing Question Mark using DataCodings.Default

Post by alt » Mon Oct 24, 2011 7:59 pm

Nick, You are quite right. GSMEncoding has problem with question mark.
Thank you for pointing this defect to me.
Will be fixed in 1.0.11.3 soon.
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: Missing Question Mark using DataCodings.Default

Post by NickAskew » Tue Oct 25, 2011 3:23 pm

v1.0.11.3 has fixed the issue, many thanks for such a quick turnaround :)
ProcessFlows UK Ltd
http://www.processflows.co.uk/
Michael
Posts: 1
Joined: Wed Mar 09, 2011 2:38 pm

Re: Missing Question Mark using DataCodings.Default

Post by Michael » Tue Jan 24, 2012 2:57 pm

How can i get the latest source when i have purchased it?

Regards
Michael
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Missing Question Mark using DataCodings.Default

Post by alt » Mon Jan 30, 2012 8:05 am

Please send purchase number to support email or use Contact Us form.
Locked