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
{{ message }}
Repository navigation
Add support for UTF-8 and other charset/encoding to @PropertySource [SPR-13874] #18447
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;
}
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][/+]on Aug 5, 2023
Activity
spring-projects-issues commentedon Jan 26, 2016
Juergen Hoeller commented
I've added a corresponding
encodingattribute to@PropertySource, allowing for a specific encoding to be associated with the given resources.Juergen
[-]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][/+]