faucamp / python-gsmmodem

Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
GNU Lesser General Public License v3.0
386 stars 303 forks source link

Issue: function decodeSmsPdu does not return correct information for unicode messages #102

Open sahailion opened 5 years ago

sahailion commented 5 years ago

Hi, I'm trying to read incoming messages and I've found out the function could not decode the sms pdu correctly.

This is the sms pdu that has been decoded correctly: 07910661929909F2040B910681835045F50008912021811065230456DE590D The function returned: "回复"

This is the sms pdu that has not been decoded correctly: 07910661929909F2040B910681835045F50008912021811065230456DE590D0039 The function return empty for the message content. While it should be "回复9"

How do I fix this issue, if it's possible? Thank you.

tomchy commented 5 years ago

Please try to use the code inside this updated fork.