I am writing Rest api end point for GET method and testing the same in postman client. By default there is no Header for encoding technique called utf-8. I want to send it in Response headers manually. So I tried like below:
$response = new ResourceResponse($newsfeed, 200); $response->headers->set('charset', 'utf-8');
After this I got this in postman Headers like :
I am just wondering is this right way to set or is there any alternative efficient way to handle it? Can anyone help me on this?