SOLVED

Webhook Json Encode Issue

Go to solution
Keerthana_Shan1
Level 2

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.?

1 ACCEPTED SOLUTION
Keerthana_Shan1
Level 2

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

View solution in original post

4 REPLIES 4
Keerthana_Shan1
Level 2

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

SanfordWhiteman
Level 10 - Community Moderator

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
Level 10 - Community Moderator

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
Level 10 - Champion Alumni

did it cause an error?

Did you check webhook docs on developer?