kwailo888 / AxolotlTestApp

9 stars 3 forks source link

Message received with extra characters #22

Closed samuelg78 closed 8 years ago

samuelg78 commented 8 years ago

I had received message with extra characters.... the message should be "Ee123 7 6009 10-120"...instead it received in followings:

"\n\u0013Ee123 7 6009 10-120\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c"

"\n\u0013Ee123 7 6009 10-120ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg"

"\n\u0013Ee123 7 6009 10-120�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������"

"\n\u0010Ee123 7 6009 10-120\v\v\v\v\v\v\v\v\v\v\v"

"\n\u0013Ee123 7 6009 10-120BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"

"\n\u0013Ee123 7 6009 10-12000000000000000000000000000000000000000000000000"

"\n\u0013Ee123 7 6009 10-12000000000000000000000000000000000"

How can i extract the correct message? I am able to extract the first 5 messages using regex but not the last 2 messages.

kwailo888 commented 8 years ago

refer to Decoding issues #18