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
{{ message }}
Repository navigation
Backport constructor accepting Charset in StringHttpMessageConverter, from Spring for Android to Spring Web. [SPR-9487] #14122
Spring for Android 's StringHttpMessageConverter has a very useful constructor which allows to specify a default charset different from ISO-8859-1:
/** * Create a new StringHttpMessageConverter instance with a default {@link Charset}, * and default list of available {@link Charset}'s from {@link Charset#availableCharsets()}. * @param defaultCharset the Charset to use */publicStringHttpMessageConverter(CharsetdefaultCharset) {
this(defaultCharset, newArrayList<Charset>(Charset.availableCharsets().values()));
}
Could this be backported to full Spring's StringHttpMessageConverter
Activity
spring-projects-issues commentedon Jun 11, 2012
Rossen Stoyanchev commented
Added code formatting.