Page 1 of 1

Greek Text SMS

Posted: Thu Mar 10, 2016 8:28 am
by distef01
Hello. Im trying to send sms with greek characters.
According to my provider i should use default encoding.
When im sending English characters everything is ok .
Unfortunately its not seems to be working when sending Greek characters message is unredable.
However message is readable when using encoding USC2 but in this case according to logs of provider im sending 3 sms messages instead of one.
My text sms message contains only one word with 8 Greek characters.
Im using test C# application included with your prodact.

Thank you in advance

Dimitris

Re: Greek Text SMS

Posted: Mon Mar 14, 2016 5:15 pm
by alt
Hello distef01,

You can change encoding mapping in the library.
http://wiki.inetlab.com/doku.php/smpp/map_encoding

Possible you need to set GSM packed encoding.
client.MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMPackedEncoding());

If it doesn't help please ask provider for an example. What byte array should be transferred in order to display correct Greek characters.
I can check this byte array and help you to configure the library.

Re: Greek Text SMS

Posted: Wed Mar 16, 2016 10:39 am
by distef01
Hello thanks for reply.
No unfortunately its not working.
If i set to client.MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMPackedEncoding()); then no sms arraives to phone at all
However if i use client.MapEncoding(DataCodings.Latin1, new Inetlab.SMPP.Encodings.GSMPackedEncoding()); then sms arrives but not readable

Re: Greek Text SMS

Posted: Wed Mar 16, 2016 10:48 am
by distef01
According to my sms provider i have to use included attachment pdf map
You can get it from
https://drive.google.com/folderview?id= ... sp=sharing

Re: Greek Text SMS

Posted: Wed Mar 16, 2016 11:12 am
by alt
Hello

Try GSM Encoding without 7 bit packing.

client.MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMEncoding());

please find out which datacoding should be used Default or Latin1 and change your code accordantly.

Re: Greek Text SMS

Posted: Wed Mar 16, 2016 11:15 am
by distef01
Hello . Thanks for fast reply.
Try GSM Encoding without 7 bit packing not worked.
I gived it a try with both Latin1 and default

Re: Greek Text SMS

Posted: Wed Mar 16, 2016 11:21 am
by distef01
_client.MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMEncoding);
_client.Submit(sm);

Re: Greek Text SMS

Posted: Wed Mar 16, 2016 11:26 am
by alt
Could you send me trace output of the library?

Re: Greek Text SMS

Posted: Wed Mar 16, 2016 11:29 am
by distef01
13:28:57: DEBUG: 14: (SmppClient) Sending PDU: SubmitSm, Length: 16, Status: ESME_ROK, Sequence: 131313
13:28:57: TRACE: 14: (SmppSocket) Socket #9008175: Sending data: 000000480000000400000000000200f1000500414353000101333036393538303032323833000000000030303030303230303030303030303052000100000008cac114c7ccc5d1c1
13:28:57: TRACE: 11: (SmppSocket) Socket #9008175: Received data: 0000001c8000000400000000000200f1323035303545373630303100
13:28:57: DEBUG: 16: (SmppClient) PDU Received: SubmitSmResp, Length: 28, Status: ESME_ROK, Sequence: 131313, MessageId: 20505E76001

Re: Greek Text SMS

Posted: Fri Mar 18, 2016 12:42 pm
by alt
What text are you trying to send? ÊÁΛÇÌÅÑÁ ?

I think some symbols in this string are not supported by GSM encoding.

Please try also this text 'ΦΓΛΩΠΨΣΘ' with default mapping settings for SmppClient.

Re: Greek Text SMS

Posted: Mon Mar 28, 2016 11:49 am
by distef01
Ok i managed to get it done.
I used encoding as you suggested combined with translation of common letters such a "K" greek to "K" english.
Thank you for your help