You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently i updated spring 4.3* to 5.3*. After then it fail's to send request. Because, MappingJackson2HttpMessageConverter enforce encoding like UTF**(unicode)
packagecom.fasterxml.jackson.core;
/** * Enumeration that defines legal encodings that can be used * for JSON content, based on list of allowed encodings from * <a href="http://www.ietf.org/rfc/rfc4627.txt">JSON specification</a>. *<p> * Note: if application want to explicitly disregard Encoding * limitations (to read in JSON encoded using an encoding not * listed as allowed), they can use {@link java.io.Reader} / * {@link java.io.Writer} instances as input */publicenumJsonEncoding {
UTF8("UTF-8", false, 8), // N/A for big-endian, reallyUTF16_BE("UTF-16BE", true, 16),
UTF16_LE("UTF-16LE", false, 16),
UTF32_BE("UTF-32BE", true, 32),
UTF32_LE("UTF-32LE", false, 32)
;
.......
how can i use 'euc-kr' as charset instead.
The text was updated successfully, but these errors were encountered:
Clapmin
changed the title
How to overrind set encoding when use MappingJackson2HttpMessageConverter
How to set encoding when use MappingJackson2HttpMessageConverter
Jan 7, 2021
According to the relevant specifications, JSON should be written in UTF-8, though UTF-16 or UTF-32 can also be used. Therefore, Jackson (and the Spring components that depend on Jackson) do not support writing non-UTF JSON.
In earlier versions of Spring Framework, the message converters ignored the character encoding completely, and wrote UTF-8 even though the Content-Type indicated otherwise. See #25076
i have a code like below
Recently i updated spring 4.3* to 5.3*. After then it fail's to send request. Because, MappingJackson2HttpMessageConverter enforce encoding like UTF**(unicode)
how can i use 'euc-kr' as charset instead.
The text was updated successfully, but these errors were encountered: