I try to open a webview in java and show the spotify login page. (https://accounts.spotify.com/en/login):
JFrame f = new JFrame();
f.setTitle("Spotify");
f.setSize(500,500);
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JFXPanel jfxPanel = new JFXPanel();
f.add(jfxPanel);
Platform.runLater(() -> {
WebView webView = new WebView();
jfxPanel.setScene(new Scene(webView));
WebEngine webEngine = webView.getEngine();
webEngine.load("https://accounts.spotify.com/en/login");
});
The result is the window below. (when i copy the cryptic text and paste it in another application, it shows me the text with right encoding.
How can I display the spotify login page with correct encoding?
http://fs2.directupload.net/images/150909/zyk25eqz.png