How to receive Unicode string?

Aug 15, 2011 at 6:36 PM

Hi Ben

Thanks for you lib!

It works find till my system receive some text with some Unicode charaters and the textmessage become Chinese character I can not recognize.

I tried to set datacoding with all the possible values but the text are the same with chinese character.



Aug 17, 2011 at 3:17 AM

Hi canhrgv,

Jamaa SMPP includes support for the following encoding schemes:

  • Latin1 Encoding
  • ASCII Encoding
  • SMSC Default Encoding
  • UCS2 Encoding

These encoding schemes are by far the most implemented by mainstream gateways. However, try to check with your gateway provider to find out the type of encoding they use.

Since it used to work just fine before, I can say something might have gone wrong somewhere, and this is definitely not something that has to do with the source code.

But like I mentioned above, the best place to start would be to find out what kind of encoding is being used by the gateway, and whether there is any action from the client that can

trigger the gateway to switch encoding schemes.

Or, if possible, try to connect to the gateway with a different SMPP library and lets see if it resolves the issue.

If you get anything, please let me know so that I can help.


Jan 30, 2015 at 10:16 AM
Help me!
I want to send sms using unicode but received have charater "?" . You help me using Unicode (Vietnamese).