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
Used in ConfigurationClassParser#processPropertySource
/** * Create a PropertySource having the given name based on Properties * loaded from the given encoded resource. */publicResourcePropertySource(Stringname, Resourceresource) throwsIOException {
super(name, PropertiesLoaderUtils.loadProperties(newEncodedResource(resource)));
this.resourceName = getNameForResource(resource);
}
/** * Create a PropertySource based on Properties loaded from the given resource. * The name of the PropertySource will be generated based on the * {@link Resource#getDescription() description} of the given resource. */publicResourcePropertySource(Resourceresource) throwsIOException {
super(getNameForResource(resource), PropertiesLoaderUtils.loadProperties(newEncodedResource(resource)));
this.resourceName = null;
}
sbrannen
changed the title
Add support for UTF-8 and other charset/encoding to @PropertySource [SPR-13874]
Add support for UTF-8 and other charset/encoding to @PropertySource [SPR-13874]
Aug 5, 2023
Fyro opened SPR-13874 and commented
It seems that there is not currently support for encoding/charset in
@PropertySource("classpath:/...")
.With french characters like "Générales", current result is "Générales" because there is no check with charset/encoding.
Default constructor with default charset, it's ok.
Used in ConfigurationClassParser#processPropertySource
Affects: 4.2.4
Issue Links:
@Configuration
classesReferenced from: commits a3a5a03
The text was updated successfully, but these errors were encountered: