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.
new String
StandardCharsets.UTF_8
1 parent 9f0aeaf commit dab6919Copy full SHA for dab6919
1 file changed
application/src/main/java/org/togetherjava/tjbot/Application.java
@@ -19,6 +19,7 @@
19
20
import java.io.IOException;
21
import java.io.InputStream;
22
+import java.nio.charset.StandardCharsets;
23
import java.nio.file.Files;
24
import java.nio.file.Path;
25
import java.sql.SQLException;
@@ -59,8 +60,7 @@ public static void main(final String[] args) {
59
60
throw new IOException("InputStream is null when loading " + configPath);
61
}
62
- String content = new String(stream.readAllBytes());
63
- config = Config.load(content);
+ config = Config.load(new String(stream.readAllBytes(), StandardCharsets.UTF_8));
64
65
} catch (IOException e) {
66
logger.error("Unable to load the configuration file from path '{}'", configPath, e);
0 commit comments