welly87 / GSMComm

GSM SMS library for C#
56 stars 85 forks source link

Concat Recieve SMS #3

Open tru3d3v opened 9 years ago

tru3d3v commented 9 years ago

Hello Welly87,

I have 2 arrays PDU of String,

string[] stringPDUs = new string[] { "059126181642440D91265868006036F8000051107061609382A0050003BB0201A6E17C1814BE87D92072181456CFC9EAB97A0E22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A0C22ABC96AB29A6C0691D56435599E97E7E92E10514D5693D56490796D5697416E90596D56ABCD6AB3DA0C32ABCD6AB31964479BD166B4196D46A3CD6B33486D569BD566B559AD56ABD5", "059126181642440D91265868006036F800005110706160348223050003BB0202D4EA3588AC06A5DD6990B82C0FCBE969D0BC3D0785D7E8B41C" };

var expectedResult = SmartMessageDecoder.CombineConcatMessageText(parts);

my expected result is "Saya awal da ajsdjsjs djdjdjd djdjdjd djdjdjd djdjdjd djdjdjd djdjdjd djdjdjdf djdjdryryt. Djdjdjd fkfje n fjfjjfjfjf fjfjff vhfhfhfhfhhfkf jfjfjfjfjjjjj jjk dj ini berarti sms akhir"

but the result is "&CsCABoCYAHCABUgIUgUgAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIAHUIUIUIMAHUIUIesesiÑ¡òUIUIUIALWMUKAÖALUMUUMUMUMALUMUMMAlQMQMQMQMQQMWMATMUMUMUMUUUUUTUWAHUARÑSADKeCeiSAfÄgABWQSe"

Why this happen ? Advice me please

Thank You

hheexx commented 8 years ago

Same problem here! Multipart messages are decoded to gibberish.

Found any solution?