Skip to main content
Best answer

Decode unicode entities from webhook trigger data

  • July 13, 2021
  • 1 reply
  • 310 views

Hi,

I currently have a zap trigger by a webhook. In the response, some characters turn into unicode characters.

For example < turns into \u003c and > turns into \u003e.

Is there a way to decode or unescape these unicode entities? E.g. like in this tool.

I played around with the Formatter, but no luck.

 

EDIT: Sample text

the second piece of code after the \u003cbody\u003e tag is \u003cdiv id=\"app\"\u003e but after

Best answer by SamBBest answer by SamB

Hey @Tomas Vemola,

Welcome to the Community! 

This may not be an ideal workaround if there’s lots of characters that are converted but if it’s just the < and > characters that are affected you could use a couple of Formatter > Text > Replace steps. 

One to find all instances of \u003c and replace it with <. And another one to replace \u003e with >. You can find out more about how to use Formatter steps to replace text here: Find, replace, or split special characters
 

Hope that helps! :)

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7442 replies
  • Answer
  • July 21, 2021

Hey @Tomas Vemola,

Welcome to the Community! 

This may not be an ideal workaround if there’s lots of characters that are converted but if it’s just the < and > characters that are affected you could use a couple of Formatter > Text > Replace steps. 

One to find all instances of \u003c and replace it with <. And another one to replace \u003e with >. You can find out more about how to use Formatter steps to replace text here: Find, replace, or split special characters
 

Hope that helps! :)