Webhook Json Encode Issue | Community
Skip to main content
Keerthana_Shan1
Level 2
Jan 10, 2018 10:10 AM UTC
Solved

Webhook Json Encode Issue

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.
Keerthana_Shan1
Keerthana_Shan1Accepted solution
Level 2
Jan 12, 2018 9:56 AM UTC

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

4 replies

Keerthana_Shan1
Keerthana_Shan1AuthorAccepted solution
Level 2
Jan 12, 2018 9:56 AM UTC

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

Translate
SanfordWhiteman
Level 10
Jan 12, 2018 10:02 AM UTC

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.

Translate
SanfordWhiteman
Level 10
Jan 10, 2018 8:54 PM UTC

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.

Translate
Josh_Hill13
Level 10
Jan 10, 2018 8:48 PM UTC

did it cause an error?

Did you check webhook docs on developer?

Translate