Skip to content

utf-8 by default #406

Closed
Closed
@eduarddrenth

Description

@eduarddrenth

Is your feature request related to a problem? Please describe.
Perhaps related to #392
For my applications and data I standardize on utf-8 as much as possible.
To make this work this using kickstart servlet I have to set character encoding

Describe the solution you'd like
Perhaps include this snippet in GraphQLHttpServlet:

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) {
        try {
            req.setCharacterEncoding(StandardCharsets.UTF_8.name());
            resp.setCharacterEncoding(StandardCharsets.UTF_8.name());
        } catch (UnsupportedEncodingException e) {
            throw new IllegalStateException(e);
        }
        super.doPost(req, resp);
    }

or introduce some configuration for character encoding

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions