diff --git a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java index 3f03ffa5..e5047f06 100644 --- a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java +++ b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java @@ -36,7 +36,9 @@ import javax.naming.directory.Attributes; import org.bandit.util.config.Realm; import org.apache.log4j.Logger; -import java.io.FileReader; +import java.io.Reader; +import java.io.InputStreamReader; +import java.io.FileInputStream; import java.io.IOException; import java.util.Hashtable; import java.util.Map; @@ -94,10 +96,10 @@ public class RealmsInfo RealmsInfo(String realmConfigFilePath) throws Exception { // Go through all of the configured realms - FileReader fileReader = null; + Reader fileReader = null; try { - fileReader = new FileReader(realmConfigFilePath); + fileReader = new InputStreamReader(new FileInputStream(realmConfigFilePath), "UTF8"); RealmsType realmsType = Realms.unmarshal(fileReader); for (int i = 0; i < realmsType.getRealmsTypeItemCount(); i++) {