We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69d56d1 commit 7a1f305Copy full SHA for 7a1f305
src/main/java/com/redhat/labs/lodestar/service/ConfigService.java
@@ -1,6 +1,7 @@
1
package com.redhat.labs.lodestar.service;
2
3
import java.io.IOException;
4
+import java.nio.charset.StandardCharsets;
5
import java.nio.file.Files;
6
import java.nio.file.Path;
7
import java.nio.file.Paths;
@@ -102,7 +103,7 @@ private String readFile(String file) {
102
103
if (Files.isReadable(path)) {
104
LOGGER.debug("Loading config file {}", file);
105
try {
- return new String(Files.readAllBytes(path));
106
+ return new String(Files.readAllBytes(path), StandardCharsets.UTF_8);
107
} catch (IOException e) {
108
LOGGER.error(String.format("Found but unable to read file %s", file), e);
109
}
0 commit comments