wallpanel-android icon indicating copy to clipboard operation
wallpanel-android copied to clipboard

Character encoding not supported on HTTP API calls

Open terba opened this issue 6 years ago • 0 comments

Describe the bug HTTP API calls do not handle character encoding. I tried the eval (alert with Hungarian text) and speak services. The alert was displayed with two question marks instead of each UTF-8 accented character and the TTS simply missed accented letters.

To Reproduce

Put the following into a file called body.json:

{"eval": "alert('Árvíztűrő');"}

and issue:

curl -H "Content-Type: application/json; charset=utf-8" -d @body.json --request POST http://YOUR-WALLPANEL:2971/api/command

Expected behavior Wallpanel should handle the character set stated in the Content-type header or at least should be configurable what the HTTP API expects.

terba avatar Oct 22 '19 15:10 terba