Page 1 of 1

Missing Question Mark using DataCodings.Default

Posted: Mon Oct 24, 2011 4:53 pm
by NickAskew
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

Re: Missing Question Mark using DataCodings.Default

Posted: Mon Oct 24, 2011 5:49 pm
by alt
Hi Nick,

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

can you try
client.MapEncoding(DataCodings.Default, Encoding.Default);

Re: Missing Question Mark using DataCodings.Default

Posted: Mon Oct 24, 2011 6:39 pm
by NickAskew
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!)

Re: Missing Question Mark using DataCodings.Default

Posted: Mon Oct 24, 2011 6:48 pm
by NickAskew
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

Re: Missing Question Mark using DataCodings.Default

Posted: Mon Oct 24, 2011 7:59 pm
by alt
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.

Re: Missing Question Mark using DataCodings.Default

Posted: Tue Oct 25, 2011 3:23 pm
by NickAskew
v1.0.11.3 has fixed the issue, many thanks for such a quick turnaround :)

Re: Missing Question Mark using DataCodings.Default

Posted: Tue Jan 24, 2012 2:57 pm
by Michael
How can i get the latest source when i have purchased it?

Regards
Michael

Re: Missing Question Mark using DataCodings.Default

Posted: Mon Jan 30, 2012 8:05 am
by alt
Please send purchase number to support email or use Contact Us form.