-
Notifications
You must be signed in to change notification settings - Fork 362
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 Content-Type and explicity encoding declaration #455
Comments
MichelFortes
changed the title
Json Content-Type and explicity enconding declaration
Json Content-Type and explicity encoding declaration
Aug 8, 2020
+1. |
Closing in favor of #175 The expected pattern to use today when you know the result is json is |
@natebosch you linked the wrong issue, also in another issue. |
@DeD1rk - corrected. Thanks for the heads up! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like the Spring developer team has done, it would be interesting to consider that all content-type "application/json" responses where encoded with UTF-8 charset.
From Spring Team:
/**
* A String equivalent of {@link MediaType#APPLICATION_JSON_UTF8}.
* @deprecated as of 5.2 in favor of {@link #APPLICATION_JSON_VALUE}
* since major browsers like Chrome
*
* now comply with the specification and interpret correctly UTF-8 special
* characters without requiring a {@code charset=UTF-8} parameter.
*/
@deprecated
public static final String APPLICATION_JSON_UTF8_VALUE = "application/json;charset=UTF-8";
The text was updated successfully, but these errors were encountered: