How to decode URL encoded string in APIGEE?

Not applicable

Q1: What kind of policy should I use?
Q2: In addition, what kind of code should I write in the policy?
Q3: I want to have a sample if possible.

0 2 1,809
2 REPLIES 2

Without knowing the specifics of your use case, you could do it in Javascript using a Javascript Policy

Depending on your use case, the functions you would use are one of the following:

var decodedURIComponent=decodeURIComponent(uriComponent)

var decodedURI = decodeURI(encodedURI)	

You could do something similar with Python/Java.

Thank you very much. But, It cannot be yet settled.

Sorry, the information that I wrote was short.

-Target data is audio binary

-Above way is tried, however the following errors occur.

"Execution of JavaScript-1 failed with error: Javascript runtime error: "URIError: Malformed URI sequence."