[Title] set encoding when reading shellfolder path from regx in case of windows xp
authorYoonKi Park <yoonki.park@samsung.com>
Fri, 20 Jan 2012 06:55:43 +0000 (15:55 +0900)
committerYoonKi Park <yoonki.park@samsung.com>
Fri, 20 Jan 2012 06:55:43 +0000 (15:55 +0900)
Change-Id: I36a56c12dab0ba34237dd30ed44203bd1e487778

com.samsung.tizen.common/src/com/samsung/tizen/common/properties/InstallPathConfig.java

index 01ebd39..bc2c794 100644 (file)
@@ -106,9 +106,9 @@ final public class InstallPathConfig {
                
                String query = "reg query " + "\"" + node + "\" /v " + key;
                try {
-                       Process process = Runtime.getRuntime().exec(query);
-                       
-                       br = new BufferedReader(new InputStreamReader(process.getInputStream(), System.getProperty("file.encoding")));
+                       Process process = Runtime.getRuntime().exec(query);                     
+                       String encoding = System.getProperty("sun.jnu.encoding");
+                       br = new BufferedReader(new InputStreamReader(process.getInputStream(), encoding));
                        
                        String line = null;
                        while((line = br.readLine()) != null) {