pajikos / sms-gammu-gateway

Simple SMS REST API gateway for sending SMS from gammu supported devices
Apache License 2.0
116 stars 31 forks source link

[Question] Is diacritics supported ? #4

Closed rchovan closed 3 years ago

rchovan commented 3 years ago

Hi, nice work, I want to add it to HomeAssistant. Currently I'm using my Huawei USB modem on Mikrotik router for receiving SMSs, but it does not support diacritics. Is diacritics supported in this local gateway ?

Thanks.

rchovan commented 3 years ago

Hi, I did some tests,

+ľščťžýáíé=oó


- diacritics in sms-gammu-gateway is partially supported, characters with diacritics are converted to native characters, like 
š > s, ľ > l , č > c, etc. 

RAW data in HomeAssistant sensor:
![image](https://user-images.githubusercontent.com/6713920/92526196-5d39c400-f225-11ea-8be2-3dc7d00584bc.png)

Parsed message in HomeAssistant
![image](https://user-images.githubusercontent.com/6713920/92525730-a5a4b200-f224-11ea-8626-4b4e41655718.png)

Strange thing, é is not converted to e  😃 

It is better than in Mikrotik, but could you please implement diacritics support ? 
I don't know python, but If you need any other help, I'm free to help.
gpailler commented 3 years ago

Hi @rchovan I just created the PR #15 with some improvements in message handling. It should fix your issue with diacritics image