Skip to content

Commit

Permalink
op리스트 한글 인코딩 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Lseoksee committed Mar 2, 2023
1 parent 6e97792 commit 92cbd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seok/PlayerOpton.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public PlayerOpton(boolean real) {
try {
Path path = Paths.get("ops.json");
//1.8 에서 inputstream에 readallbyte 메소드가 없음
array = new JSONArray(new String(Files.readAllBytes(path)));
array = new JSONArray(new String(Files.readAllBytes(path), "utf-8"));
} catch (Exception e) {
array = new JSONArray("[]");
}
Expand Down

0 comments on commit 92cbd4c

Please sign in to comment.