I need to set Content-Type: application/json; charset=UTF-8 in a data view from CakePHP. I’ve already tried to set $this->response->header('Content-Type', 'application/json; charset=UTF-8'); but that doesn’t change anything. It still just output Content-Type: application/json.
I need to set Content-Type: application/json; charset=UTF-8 in a data view from CakePHP. I’ve
Share
its in the code (CakeResponse, line 447):
so only for “text/…” the charset will be appended.
I dont know why, though…