Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Unicode message not received correctly
sp_NewPost Add Reply sp_NewTopic Add Topic
February 26, 2019
4:24 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Diafaan SMS Server uses standards as much as possible and since percent encoding is the standard encoding for URIs, Diafaan SMS Server uses that for all HTTP queries.

The actual encoding of the message depends on the gateway that is used to send the message. Depending on the characters in the message, the settings of the gateway and the value of the message-type parameter, the message will be encoded in the default SMS character set or in UCS16 encoding. Some SMPP servers require another encoding like the ISO 8859 character set and the SMPP Gateway in Diafaan SMS Server can use that too if it is specified in the settings. The specific encoding that is used when the message is sent has very little impact on the send speed of the gateways.

The number of message parts for a long message and the actual message-type that is used to send the message(s) is only available after Diafaan SMS Server has sent the message because it depends on the actual gateway that sent the message. This information is passed on in the 'message_log' HTTP callback.

Regards, Henk

February 26, 2019
3:36 pm
Adam
Guest
Guests

Hello Henk,

But most of the smpp gateway they support the utf16 , and our front end and main system built to use the utf16,what i can understand from your answer that we have to convert each message to URI encoding , which i think it will slow down more the smpp speed.

Other thing if we did not use the message-type , then how the http callback will calculate the message parts ?

Regards

Adam

February 26, 2019
3:30 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Adam,

You can use the Unicode characters directly in the URI or (preferably) use the standard URI percent encoding for the Unicode characters. 063906310628064A is not a correct URI encoding for a Unicode text in a URI, this string can be encoded as %D8%B9%D8%B1%D8%98%D9%8A.

There is no need to set the message-type to sms.unicode. Diafaan SMS Server will automatically use the correct encoding when it sends the message with a GSM Modem Gateway or SMPP Gateway. The message-type should only be set if you want to enforce a specific encoding, even if that means that the message will not be sent correctly or not as efficient as possible.

Regards, Henk

February 26, 2019
1:42 pm
Adam
Guest
Guests

Hello again henk,

When we are tryo to send unicode message example : 063906310628064A , we are receiving the message on the handset phone also as 063906310628064A not to their original characters .

http://localhost:990/http/send-message?username=ahmad&password=ahm19771977&to=601111111111&message=063906310628064A&from=test&message-type=sms.unicode&gateway=SMPP%20route1&ip_number=127.0.0.1

we have set the message-type=sms.unicode , and we have tried to force the smpp gateway by using MessageType to unicode type in the Advanced settings but still same.

note that our smpp gateway supporting the unicode ucs 16, as we are currently using them.

please advise what is the issue

Regards
Adam

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 672

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1141

Posts: 3899

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1488