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
ASCII Char 0x27 recognized as UNICODE
sp_NewPost Add Reply sp_NewTopic Add Topic
May 21, 2021
9:15 am
Stefano
Guest
Guests

Thanks Henk, I understood, the second apostrophe wasn't an ascii char but unicode.

I replaced it with the right char and now it works good.

I've bought the Basic Edition one year ago and your software is the best sms server I've ever used. Good work!

Regards

Stefano

May 20, 2021
3:44 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Thank you for the log.

The message you are sending contains two different apostrophe characters, the ' (ASCII character 0x27) and the ’ (right single quotation mark, ’ or Unicode character 0x2019). The first apostrophe is part of the GSM default alphabet and a text that contains this character will be sent as text message. The second apostrophe is not part of the GSM default alphabet, a text that contains this character will be sent as a Unicode message by Diafaan SMS Server. You can use the message analyzer on our website to see if a message will be sent as text or unicode, and in how much message parts.

The GSM Modem Gateway does not have an option to substitute specific characters by a similar character, but in the basic- and full editions of Diafaan SMS Server it is possible to use the HTTP callback functionality in combination with a customized C# script to change the message before it enters Diafaan SMS Server. You can use this to substitute the right single quotation mark characters with the ASCII equivalent.

Regards, Henk

May 20, 2021
12:26 pm
Stefano
Guest
Guests

Hello Henk, thanks for the support.
I've just sent an email with the LOG.

If I set type=automatic, the SMS will be sent using unicode. If I set type=sms.text the software replace the ' with the question mark.
It seams like the server consider the ' as unicode.

This happens only with the query string in web connector. If I paste the message in the server console, the message is sent correctly by the software.

Regards
Stefano

May 20, 2021
9:43 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Stefano,

I have not been able to replicate this issue. If I test it with a message containing the ' (0x27) character, the message is sent as a normal text message, not as a Unicode message. Also, the 'message-type=sms.text' parameter in the HTTP API call instructs the GSM Modem Gateway to use the GSM default alfabet encoding and convert all Unicode characters to question marks, so the message should not be sent as Unicode anyway.

I would like to see the full send log item for this message, you can right-click on the item in the send log page of the GSM Modem Gateway and select 'Export to file' to save the information to a file and send the file to email address dms@diafaan.com.

Regards, Henk

May 19, 2021
7:11 pm
Stefano
Guest
Guests

Hello, I've this issue in the web connector.

Using the web connector GET call to /http/send-message?to={number}&message-type=sms.text&message={message}&username={u}&password={p}

If the messages contain the ' (Apostrophe) char the server use UNICODE instead TEXT.
I've tried to set the modem "BasicTextMode" but the chars are replaced with a ? (normal behavior) but the char apostrophe is not a UNICODE char.

If I send the same message with the server console, all will work good.

Can you help me please?

With esendex connector I had the same problem and I changed the c# script but for the modem I think this is not possible.

Bye
Stefano

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
4 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