Fix HTML Pane encoding
This commit is contained in:
parent
1ec02658fe
commit
50cd6b19d3
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ public class HTMLPane extends JEditorPane
|
|||
if (is == null)
|
||||
return null;
|
||||
try (InputStream stream = is;
|
||||
Scanner s = new Scanner(stream).useDelimiter("\\A")) {
|
||||
Scanner s = new Scanner(stream, "UTF-8").useDelimiter("\\A")) {
|
||||
return s.hasNext() ? s.next() : "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue