spring-framework / org.springframework.jms.support.converter / MappingJackson2MessageConverter / setEncoding

setEncoding

open fun setEncoding(encoding: String): Unit

Specify the encoding to use when converting to and from text-based message body content. The default encoding will be "UTF-8".

When reading from a a text-based message, an encoding may have been suggested through a special JMS property which will then be preferred over the encoding set on this MessageConverter instance.

See Also
#setEncodingPropertyName