jakartaee / jakartaee/rest

Allow to specify charset in @Produces/@Consumes using attributes

Open
#535 5 comments 4 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: server
Dominant language
Java
Stars
400
Forks
143
PR merge metrics
No merged PRs in 30d

Description

The standard should allow to set charset in an easier way than doing string concatenation

```
@Produces("application/json; charset=UTF-8")
```

Something like this in case of a single MediaType

```
@Produces(type = MediaType.APPLICATION_JSON_TYPE, charset = StandardCharsets.UTF-8)
```
#### Affected Versions
[2.0.1]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.