1

URL Encoding while sending Notification

Topic: URL Encoding while sending Notification

While sending notification, I have configured the notification like this:

{
    "unit":"%UNIT%",
    "unitId":"%UNIT_ID%",
    "time":"%POS_TIME%",
    "speed":"%SPEED%",
    "location":"%LOCATION%",
    "status":"stopped"
  }

I send a POST notification to another server.
Here, some characters like the name of the unit are having Russian characters, which are not received correctly on that server.
Hence I would like to URL encode the notification before sending the notification, so when the notification is received at another server, all the data can be obtained by doing URL decode.

Any idea how can we do this from the Wialon Notification Interface?

2

URL Encoding while sending Notification

Re: URL Encoding while sending Notification

getgpsdev, we checked the code and tried to send a POST notification with tags. As we see, tags are encoded.

May you send an example of sent notification and how it looks after receiving at another server? tata@gurtam.com is my email. then we could look for issues that may cause a wrong result.

Tatsiana Kots
Business Analyst, Gurtam
Join our Telegram Update Channel | Следите за обновлениями на нашем Telegram канале