Webhook Json Encode Issue | Community
Skip to main content
Keerthana_Shan1
New Participant
January 10, 2018
Solved

Webhook Json Encode Issue

  • January 10, 2018
  • 3 replies
  • 3062 views

Hi,

I am using webhook to call API, in input there was special characters in certain fields like name -Олег. but this value is encoded like  "\u041e\u043b\u0435\u0433" in webhook request.

Do we have any other configuration to avoid this encoding.?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Keerthana_Shan1

The encoding is working if we gave request token encoding as Form/URL instead of Json.

3 replies

Keerthana_Shan1
Keerthana_Shan1AuthorAccepted solution
New Participant
January 12, 2018

The encoding is working if we gave request token encoding as Form/URL instead of Json.

SanfordWhiteman
New Participant
January 12, 2018

OK, then the remote endpoint was expecting URI-encoded in the first place. Like I said, there's nothing wrong with escaped Unicode code points in JSON.

SanfordWhiteman
New Participant
January 10, 2018

Any JSON-compatible API will understand this encoding: it's explicitly described in the JSON standard. If the remote endpoint can't understand it, file a bug with them as they're broken.

Josh_Hill13
New Participant
January 10, 2018

did it cause an error?

Did you check webhook docs on developer?