Greek Text SMS

.NET library for SMPP protocol
Locked
distef01
Posts: 7
Joined: Thu Mar 10, 2016 8:23 am

Greek Text SMS

Post by distef01 » Thu Mar 10, 2016 8:28 am

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
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Greek Text SMS

Post by alt » Mon Mar 14, 2016 5:15 pm

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.
distef01
Posts: 7
Joined: Thu Mar 10, 2016 8:23 am

Re: Greek Text SMS

Post by distef01 » Wed Mar 16, 2016 10:39 am

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
distef01
Posts: 7
Joined: Thu Mar 10, 2016 8:23 am

Re: Greek Text SMS

Post by distef01 » Wed Mar 16, 2016 10:48 am

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
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Greek Text SMS

Post by alt » Wed Mar 16, 2016 11:12 am

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.
distef01
Posts: 7
Joined: Thu Mar 10, 2016 8:23 am

Re: Greek Text SMS

Post by distef01 » Wed Mar 16, 2016 11:15 am

Hello . Thanks for fast reply.
Try GSM Encoding without 7 bit packing not worked.
I gived it a try with both Latin1 and default
distef01
Posts: 7
Joined: Thu Mar 10, 2016 8:23 am

Re: Greek Text SMS

Post by distef01 » Wed Mar 16, 2016 11:21 am

_client.MapEncoding(DataCodings.Default, new Inetlab.SMPP.Encodings.GSMEncoding);
_client.Submit(sm);
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Greek Text SMS

Post by alt » Wed Mar 16, 2016 11:26 am

Could you send me trace output of the library?
distef01
Posts: 7
Joined: Thu Mar 10, 2016 8:23 am

Re: Greek Text SMS

Post by distef01 » Wed Mar 16, 2016 11:29 am

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
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Greek Text SMS

Post by alt » Fri Mar 18, 2016 12:42 pm

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.
distef01
Posts: 7
Joined: Thu Mar 10, 2016 8:23 am

Re: Greek Text SMS

Post by distef01 » Mon Mar 28, 2016 11:49 am

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
Locked