traccar / traccar-sms-gateway

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

Sending emojis is not possible #21

Open Tijs-B opened 5 months ago

Tijs-B commented 5 months ago

Sending emojis through the HTTP endpoint is not possible; SMSes do not arrive but the endpoint responds with 200 OK as normal.

To reproduce:

$ curl --header 'Authorization: <token>' --header 'Content-Type: application/json' --data '{"message":"😄","to":"+32495000000"}' http://192.168.0.100:8082 -v
*   Trying 192.168.0.100:8082...
* Connected to 192.168.0.100 (192.168.0.100) port 8082 (#0)
> POST / HTTP/1.1
> Host: 192.168.0.100:8082
> User-Agent: curl/8.1.2
> Accept: */*
> Authorization: <token>
> Content-Type: application/json
> Content-Length: 131
>
< HTTP/1.1 200 OK
< Content-Type: text/html;charset=UTF-8
< Content-Length: 0
< Server: Jetty(8.y.z-SNAPSHOT)
<
* Connection #0 to host 192.168.0.100 left intact