Skip to content

Set charset for JsonResponse #120

@patrickkusebauch

Description

@patrickkusebauch

When sending a JsonResponse, you cannot set the JSON charset right now. There is a work around right now with
$this->sendResponse(new \Nette\Application\Responses\JsonResponse($data, 'application/json; charset=utf-8')); , but it ?should not? work.

There is a discussion of this behavior on Nette Framework Forum (in Czech).

I am willing to write a PR, of somebody decides the solution (you should not be able to set charset under any circumstances vs add ability to set charset transparently).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions