I am working on converting some property files from iso-8859-1 to utf-8. I have implemented resource.control for most resource files so that it reads as utf-8 encoding.
I came across a property file that was defined in spring using the util: properties tag.
I was wondering if there is a way to indicate that the default encoding will be utf-8? I looked at the opportunity to define this as a bean with the ReloadableResourceBundleMessageSource resource, however, this will require a great refactoring process, since the logic in the bean expects it to be like a map.
defined using spring 3.0.5
<util:properties id="fooProperties" location="file:${AXE_APPCONFIG}/foo.properties"/>
I know that by definition, java property files are encoded by iso-8859-1, however, I thought spring might come up with a way to change its encoding (e.g. Resource.Control)
source
share