Page 1 of 1

Problem in deliver_sm message encoding

Posted: Sun Oct 04, 2009 8:38 am
by prog019
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.

Posted: Mon Oct 05, 2009 10:51 am
by alt
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.

Posted: Mon Oct 05, 2009 10:53 am
by araxno
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.