Dear All,
any help for this problem:
I am testing JSMPP code as client(latest version on githup stream) to send a UCS2 message to SMPP server (version 3.4):
- Send and receive were successfull.
- Problem with Datacoding at server side: Server got Datacoding = 25. it's not expectation value. Actually, it should be =8
------------------------------------------------------------------------------------------
The test code at jsmpp client:
// this is how to write "house" in arabic
String house = "\u0628" + "\u064e" + "\u064a" +
"\u0652" + "\u067a" + "\u064f";
TimeFormatter timeFormatter = new RelativeTimeFormatter();
// 4. Specify the data coding using UCS2
DataCoding dataCoding = new GeneralDataCoding(Alphabet.ALPHA_UCS2, MessageClass.CLASS1, false);
// 5. UCS-2 is subset of the UTF-16BE charset, only the Basic Multilingual Plane codepoints are encodeable as UCS-2
byte[] data = house.getBytes(StandardCharsets.UTF_16BE);
// 6. Submit the short message
SubmitSmResult submitSmResult = session.submitShortMessage("CMT",
TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN,
"1616", TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN,
"628176504657", new ESMClass(), (byte)0, (byte)1,
timeFormatter.format(new Date(System.currentTimeMillis() + 60000)), null,
new RegisteredDelivery(SMSCDeliveryReceipt.DEFAULT), (byte)0,
dataCoding,
(byte)0, data);
---------------------------------------------------------------------
- Question is: how to set datacoding at client =8
anyone can help me on this problem.