Paypal webhook data with no UTF-8 format

I get a json on webhook paypal with some encoded/urlencode text (firstname) = S%E1ndor, how to convert this to show = Sándor on UTF-8 format ?

You’ll have to set the correct encoding on PayPal itself, so that they can send the data to Make using UTF-8

For more information, see https://support.bookeo.com/hc/en-us/articles/360017924152-How-to-set-the-correct-character-encoding-in-PayPal

2 Likes

@samliew This is a old article, paypal do not have this option anymore, I can´t find it.

Add a ‘Set variable’ module to your scenario after the PayPal webhook create a variable.
Use the decodeURL function to decode the URL-encoded string. For example, enter the function decodeURL and pass the encoded text as the parameter:

decodeURL(1.firstname)

Replace 1.firstname with the actual variable path that contains the URL-encoded first name.

This will convert S%E1ndor into Sándor. Now you can use the variable in subsequent modules of your scenario to reference the UTF-8 formatted first name.

2 Likes

@ThakurHemansh I already try this, no works

You tried using that on the link that web hook is giving
It might work

2 Likes

Then why am I seeing this page on my PayPal?

I’m telling you, it works.

This is the only correct solution because it fixes the problem at the source.

Maybe this link may help you
https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-language-encoding

2 Likes

You was right, this is the link:

https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-language-encoding, then click on more option:

image

Is possible make the change there:

1 Like

No problem, glad I could help!

1. If you have a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

others can save time when catching up with the latest activity here, and

  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049