|
@@ -5,8 +5,10 @@
|
|
|
*/
|
|
|
package com.thinkgem.jeesite.common.utils;
|
|
|
|
|
|
+import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
+import java.io.InputStreamReader;
|
|
|
import java.util.NoSuchElementException;
|
|
|
import java.util.Properties;
|
|
|
|
|
@@ -142,7 +144,7 @@ public class PropertiesLoader {
|
|
|
try {
|
|
|
Resource resource = resourceLoader.getResource(location);
|
|
|
is = resource.getInputStream();
|
|
|
- props.load(is);
|
|
|
+ props.load(new BufferedReader(new InputStreamReader(is,"utf-8")));
|
|
|
} catch (IOException ex) {
|
|
|
logger.info("Could not load properties from path:" + location + ", " + ex.getMessage());
|
|
|
} finally {
|