fiorix / go-smpp

SMPP 3.4 Protocol for the Go programming language
MIT License
218 stars 135 forks source link

Converting the hex in text field of delivery receipt to original UCS2 text submitted #107

Open tahseenjamal opened 1 year ago

tahseenjamal commented 1 year ago

I am sending non-English (Chinese) string via UCS2 to SMPP and in the delivery receipt receive a hex in text part, which otherwise in normal gsm comes as first 10 characters of the message sent

How do I convert hex in case of UCS2 into the Chinese string ?

I assumed it as hex and tried but it is not working. Can we initialize pdutext and then execute its function to get the conversion ?