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

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