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
Wrong encoding for special characters (Swedish language) #10604
Comments
This seems to happen as a result of the change in JsonBProvider in commit 548bcf2 where getBytes is called without a charset specified. |
I'm taking a look - it seems like we should be setting the charset based on the |
According to RFC8259, So to me it sounds like always using UTF-8 could be ok, or at least the default if no charset is specified. |
We are facing the same problems after upgrading. German umlauts are not readable |
I've just integrated a change that uses UTF-8 as the default, but allows users to override the default charset for the JSON-B entity provider by setting |
Describe the bug
In the latest release (20.0.0.1), our application started to handle Swedish characters in wrong way
Steps to Reproduce
Print something in swedish like äppel or översätt, and it will be question marks instead of right characters
Expected behavior
to be written correctly in responses
Diagnostic information:
Additional context
The problem got fixed by setting LANG=en_US.UTF-8 in linux, however we still have the same problem in windows which seems not to solve the problem by LANG env variable
The text was updated successfully, but these errors were encountered: