mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Forcing dspace.cfg and email files to be read in UTF-8
This commit is contained in:

committed by
Pascal-Nicolas Becker

parent
9e24d11d10
commit
802cce856f
@@ -597,7 +597,7 @@ public class ConfigurationManager
|
||||
BufferedReader reader = null;
|
||||
try
|
||||
{
|
||||
reader = new BufferedReader(new FileReader(emailFile));
|
||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(emailFile), "UTF-8"));
|
||||
|
||||
boolean more = true;
|
||||
|
||||
@@ -921,7 +921,7 @@ public class ConfigurationManager
|
||||
{
|
||||
properties = new Properties();
|
||||
is = url.openStream();
|
||||
properties.load(is);
|
||||
properties.load(new InputStreamReader(is, "UTF-8"));
|
||||
|
||||
// walk values, interpolating any embedded references.
|
||||
for (Enumeration<?> pe = properties.propertyNames(); pe.hasMoreElements(); )
|
||||
|
Reference in New Issue
Block a user