Hello everyone,
I wanted to ask if it was an expected behavior of the API to return some characters in their HTML special codes ?
For example, I have a geofence which contains an apostrophe " ' " in its name.
In the database (MySQL) and the Web interface it's properly stored and displayed, but when I get it through the API,
I get
'
in the JSON instead of the apostrophe.
I got this problem with some other characters like double quote or <. But not with other like ©, #, É ... for some reason.
It doesn't matter if I have inserted the data via the website or the API in the first place.
Have a good day !
Traccar version : 4.10 (same problem with 4.9 and with default database)
OS : Debian 10
That's expected behavior.
Thanks for the response !
Then how can we know which HTML characters will be sent as a code ? Is their a list ?
Sorry if it's a common asking.
Just decode all encoded characters.
Hello everyone,
I wanted to ask if it was an expected behavior of the API to return some characters in their HTML special codes ?
For example, I have a geofence which contains an apostrophe " ' " in its name.
In the database (MySQL) and the Web interface it's properly stored and displayed, but when I get it through the API,
I get
in the JSON instead of the apostrophe.
I got this problem with some other characters like double quote or <. But not with other like ©, #, É ... for some reason.
It doesn't matter if I have inserted the data via the website or the API in the first place.
Have a good day !
Traccar version : 4.10 (same problem with 4.9 and with default database)
OS : Debian 10