Problem in deliver_sm message encoding

Smpp v3.4 client

Moderator: alt

Locked
prog019
Posts: 44
Joined: Mon Mar 02, 2009 2:12 pm

Problem in deliver_sm message encoding

Post by prog019 » Sun Oct 04, 2009 8:38 am

In short number I am sending SMS in russian language("привет")
And in deliver_sm i am get this:

1:33:51 PM: Received Data: 0000003d000000050000000005898091000101333734393336303034313500020132303236008000000000000008000d0c043f04400438043204350442

1:33:51 PM: DeliverSm received : Sequence : 92897425 SourceAddr : 37493600415 Coding : 8 MessageText : ఄ㼄䀄㠄㈄㔄�
1:33:51 PM: Sending Data: 0000001180000005000000000589809100


Dears, can you help?

Thanks.
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Mon Oct 05, 2009 10:51 am

It looks like this deliver_sm packet has two fields sm_length
first is 0x0d and second 0x0c right after first. 0xc byte is already in short_message field and affects the text.

Please ask SMSC side why they send sm_length twice or why short_message has its length in the beginning.
araxno
Posts: 21
Joined: Thu Jul 30, 2009 12:35 pm

Post by araxno » Mon Oct 05, 2009 10:53 am

I send Russian text too. I use DataCodings.UCS2 so which datacoding do you use?

Also It could be about your application's datacoding . You can put breakpoint and see how text seems.
Locked