Convert a encoded/urlencode text to string

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

That was encoded in Windows-1252 encoding, not UTF-8.

You might want to give this module a try:

Screenshot_2024-01-15_090136

If all else fails, you can always manually replace the text:

Screenshot_2024-01-15_090138

2 Likes

S%E1ndor is a dynamic value, I can´t use replace for all name

Yes, you can. Just put the variable in the first parameter of the replace function.

Screenshot_2024-01-15_100130

2 Likes

May you do not understand S%E1ndor that I got on paypal json is a name, so if someone use another name your idea will no work.

For now I am using GPT as a solution.

image

image

1 Like

What is an example or examples of other names that will not work?

2 Likes

I think you should be able to set the Paypal output to UTF-8 instead of Windows-1252. If not then you can indeed use a middleware like ChatGPT , or you use 0codekit ( available in Make) and run some custom JS or Python.

1 Like

No, there is no option.

Every person in the world has a different name, how will I know everyone’s name?

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