[606] Clickatell SMS encoding option
Posted: Friday 24 July 2015 10:17
Hi,
I've been using Clickatell SMS functionality for a while and it's working very well from Domoticz point of view.
But I've noticed that there are nasty encoding issues which seem to be related to the Clickatell's service. I do live in Finland and we do have letters like ä and ö
which do not show correctly in mobile phone. Please take a look at the picture below for more information.
Correct text should be:
-SMS1: Varashälytys!
-SMS2: Varashälytin kytketty päälle
I did more research about this one because my wife received SMS messages from the Domoticz but I didn't. I found out that her network operator DNA passes messages through without issues even encoding is messed up but for some reason my network operator Elisa has started blocking SMS messages if there are ä and/or ö letters that encoding has been messed up. I did more tests with the Clickatell's SMS HTTP API and according to the tests, I receive only SMS messages if there are no ä and/or ö letters. I also found out that it's possible to overcome this issue by using unicode encoding. In the following screen capture, last SMS message has been sent with unicode encoding and it's flawless!
So I propose to have an option (tick box for example) to select unicode encoding in the Clickatell SMS settings in the Domoticz. If tick box is checked then the Domoticz automatically adds following parameter to the Clickatell SMS command query according to the Clickatell's HTTP spec:
Of course text which will be sent needs to be in UTF-16BE format. Conversion can be done manually for example using the the Clickatell's Unicode converter (requires Clickatell account) if TEXT -> UTF-16BE conversion cannot be done automatically by the Domoticz.
Edit: Tracker number added to the subject
I've been using Clickatell SMS functionality for a while and it's working very well from Domoticz point of view.
But I've noticed that there are nasty encoding issues which seem to be related to the Clickatell's service. I do live in Finland and we do have letters like ä and ö
which do not show correctly in mobile phone. Please take a look at the picture below for more information.
Correct text should be:
-SMS1: Varashälytys!
-SMS2: Varashälytin kytketty päälle
I did more research about this one because my wife received SMS messages from the Domoticz but I didn't. I found out that her network operator DNA passes messages through without issues even encoding is messed up but for some reason my network operator Elisa has started blocking SMS messages if there are ä and/or ö letters that encoding has been messed up. I did more tests with the Clickatell's SMS HTTP API and according to the tests, I receive only SMS messages if there are no ä and/or ö letters. I also found out that it's possible to overcome this issue by using unicode encoding. In the following screen capture, last SMS message has been sent with unicode encoding and it's flawless!
So I propose to have an option (tick box for example) to select unicode encoding in the Clickatell SMS settings in the Domoticz. If tick box is checked then the Domoticz automatically adds following parameter to the Clickatell SMS command query according to the Clickatell's HTTP spec:
Code: Select all
&unicode=1
Edit: Tracker number added to the subject