Skip to content

UTF-8 as default charset for response body decoding #94

Closed
@sanekyy

Description

@sanekyy

JsonApi spec:

https://jsonapi.org/format/#content-negotiation-servers

Servers MUST send all JSON:API data in response documents with the header Content-Type: application/vnd.api+json without any media type parameters.

Dart HTTP client by default decode use latin1 charset.

image

So it's not decoding correctly UTF-8 json:

dart-lang/http#175

Let's use charset UTF-8 as default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions