Fix HTML Pane encoding

This commit is contained in:
Nico Mexis 2022-01-08 11:48:17 +01:00
parent 1ec02658fe
commit 50cd6b19d3
No known key found for this signature in database
GPG Key ID: 27D6E17CE092AB78
1 changed files with 1 additions and 1 deletions

View File

@ -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() : "";
}
}