Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
文字化けする問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
malken21 committed Mar 28, 2024
1 parent 6b59b62 commit 2f8455e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static String getResource(String path) {
StringBuilder fileText = new StringBuilder();

try (InputStream is = WebUIService.class.getResourceAsStream(path);
BufferedReader br = new BufferedReader(new InputStreamReader(Objects.requireNonNull(is)))) {
BufferedReader br = new BufferedReader(new InputStreamReader(Objects.requireNonNull(is), StandardCharsets.UTF_8))) {
String line;
while ((line = br.readLine()) != null) {
fileText.append(line); // ファイルの内容を1行ずつ読み込み
Expand Down

0 comments on commit 2f8455e

Please sign in to comment.