Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support UTF-16 and UTF-32 in Jackson HttpMessageConverters #26627

Closed
poutsma opened this issue Mar 2, 2021 · 0 comments
Closed

Support UTF-16 and UTF-32 in Jackson HttpMessageConverters #26627

poutsma opened this issue Mar 2, 2021 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@poutsma
Copy link
Contributor

poutsma commented Mar 2, 2021

Besides UTF-8, Jackson supports UTF-16 and UTF-32, but because neither are present in Jackson's JsonEncoding enum, we treat them like any other encoding, and convert them using an InputStreamReader. This should be fixed.

@poutsma poutsma self-assigned this Mar 2, 2021
@poutsma poutsma added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Mar 2, 2021
@poutsma poutsma added this to the 5.3.5 milestone Mar 2, 2021
@poutsma poutsma changed the title Support UTF-16 in Jackson HttpMessageConverters Support UTF-16 and UTF-32 in Jackson HttpMessageConverters Mar 2, 2021
@poutsma poutsma closed this as completed in b61643b Mar 2, 2021
This was referenced Mar 16, 2021
This was referenced Mar 17, 2021
lxbzmy pushed a commit to lxbzmy/spring-framework that referenced this issue Mar 26, 2022
This commit makes sure that we let Jackson deal with all the encodings
that it supports, including UTF-16 and UTF-32.

Closes spring-projectsgh-26627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant