aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/java/com/juick/www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-spring-www/src/main/java/com/juick/www')
-rw-r--r--juick-spring-www/src/main/java/com/juick/www/HelpService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-spring-www/src/main/java/com/juick/www/HelpService.java b/juick-spring-www/src/main/java/com/juick/www/HelpService.java
index 76b3582d..f6e9d352 100644
--- a/juick-spring-www/src/main/java/com/juick/www/HelpService.java
+++ b/juick-spring-www/src/main/java/com/juick/www/HelpService.java
@@ -4,6 +4,7 @@ import org.springframework.cache.annotation.Cacheable;
import org.springframework.core.io.ClassPathResource;
import java.io.IOException;
+import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
@@ -33,7 +34,7 @@ public class HelpService {
file = Paths.get(new ClassPathResource(path).getURI());
if (Files.isReadable(file))
- return new String(Files.readAllBytes(file));
+ return new String(Files.readAllBytes(file), StandardCharsets.UTF_8);
} catch (IOException e) {
}
}