traccar / traccar-sms-gateway

Traccar SMS Gateway for Android
GNU General Public License v3.0
642 stars 105 forks source link

Hebrew sms display via traccar-sms-gateway #1

Open shyy110 opened 4 years ago

shyy110 commented 4 years ago

Hello , when using the sms-gateway to send sms notification from traccar in Hebrew the we getting unreadable characters

like this Dev3_ניסיון

same massage in telegram we received fine Dev3_ניסיון

when we use other sms GW (ozeki SMS) we getting the correct contect

can you please advice ?

latiif commented 3 years ago

I also had a similar issue with Arabic characters.

Make sure to specify the content type header for your request: Content-Type: application/json; charset=utf-8.

Example with curl:

curl --header "Content-Type: application/json; charset=utf-8" \
 --header "Authorization: <YOUR API KEY>" \
 --data '{"to":"<YOUR PHONE NUMBER>","message":"سلام"}' \
http://<GATEWAY IP ADDRESS>:8082