spring-framework / org.springframework.context.support / ReloadableResourceBundleMessageSource / setFileEncodings

setFileEncodings

open fun setFileEncodings(fileEncodings: Properties): Unit

Set per-file charsets to use for parsing properties files.

Only applies to classic properties files, not to XML files.

Parameters

fileEncodings - Properties with filenames as keys and charset names as values. Filenames have to match the basename syntax, with optional locale-specific components: e.g. "WEB-INF/messages" or "WEB-INF/messages_en".

See Also
#setBasenamesorg.springframework.util.PropertiesPersister#load