File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
tsfile/src/main/java/org/apache/tsfile/common/conf Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 28
28
import java .io .FileInputStream ;
29
29
import java .io .FileNotFoundException ;
30
30
import java .io .IOException ;
31
+ import java .io .InputStreamReader ;
31
32
import java .net .URI ;
32
33
import java .net .URISyntaxException ;
33
34
import java .net .URL ;
35
+ import java .nio .charset .StandardCharsets ;
34
36
import java .nio .file .Paths ;
35
37
import java .util .Optional ;
36
38
import java .util .Properties ;
@@ -134,7 +136,7 @@ private Optional<Properties> loadProperties() {
134
136
private Optional <Properties > loadPropertiesFromFile (String filePath ) {
135
137
try (FileInputStream fileInputStream = new FileInputStream (filePath )) {
136
138
Properties properties = new Properties ();
137
- properties .load (fileInputStream );
139
+ properties .load (new InputStreamReader ( fileInputStream , StandardCharsets . UTF_8 ) );
138
140
return Optional .of (properties );
139
141
} catch (FileNotFoundException e ) {
140
142
logger .warn ("Fail to find config file {}" , filePath );
You can’t perform that action at this time.
0 commit comments