Skip to content

Commit 50cd6b1

Browse files
committed
Fix HTML Pane encoding
1 parent 1ec0265 commit 50cd6b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/the/bytecode/club/bytecodeviewer/gui/components

src/main/java/the/bytecode/club/bytecodeviewer/gui/components/HTMLPane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static String convertStreamToString(InputStream is) throws IOException
8383
if (is == null)
8484
return null;
8585
try (InputStream stream = is;
86-
Scanner s = new Scanner(stream).useDelimiter("\\A")) {
86+
Scanner s = new Scanner(stream, "UTF-8").useDelimiter("\\A")) {
8787
return s.hasNext() ? s.next() : "";
8888
}
8989
}

0 commit comments

Comments
 (0)