I have a problem reading some character in a property file in Spring MVC.
I know properties file are encoded in ISO-8859-1 so I set my messageSource bean to set the default encode to UTF-8
@Bean
public MessageSource messageSource() {
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
messageSource.setBasename("messages");
messageSource.setDefaultEncoding("UTF-8");
return messageSource;
}
Before this modification, for example I saw the à character as �, after the à became ?
I've also tried to use ReloadedResourceBundleMessageSource with no effect
How can I display just à?