diff options
author | Vitaly Takmazov | 2016-12-12 16:16:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-12 16:16:50 +0300 |
commit | cf5d3c5a78ae5be2209bb0d0d91ce1eaf0296c04 (patch) | |
tree | c3148cbb983b2c1721427c76e2c6cbb1ee1aed30 /juick-spring-www/src/main/java/com/juick/www | |
parent | f515a4ea1954b3e98c35d8ea8e7fee58272ea0a0 (diff) |
juick-spring-www: fix help charset
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.java | 3 |
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) { } } |