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
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