Content-Type charset handling

Hi,

I have several proxies that integrates with multiple end systems and I have a requirement to always return to my API consumers with Content-Type: application/json; charset=utf-8. How can I make sure that, regardless of the charset sent by the backends, my Proxy response always return the charset=utf-8? Is there any policy to do something like this?

 

Thanks in advance,

Fábio

1 2 119
2 REPLIES 2

Refer below & set in response flow using Assign Variable on required header.

 

 

I can force my Proxy to return the charset=utf-8. But how do I guarantee that my response has this charset? I do not manipulate the backend payload and it might be in another charset encoding as I do not have control over it.