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

JSON responses are parsed to text as iso-8859-1 by default rather than UTF-8 #145

Open
svella opened this issue Nov 29, 2017 · 0 comments
Open

Comments

@svella
Copy link

svella commented Nov 29, 2017

Per https://tools.ietf.org/html/rfc7159#section-8.1

JSON text SHALL be encoded in UTF-8, UTF-16, or UTF-32. The default encoding is UTF-8 ...

but in the absence of an explicit charset specified in the content-type header, ResponseBuilder.build parses it into text using iso-8859-1 (via HttpResponse.getContentAsString()) which isn't even a legal charset for JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant