У меня есть проблема с грузинским языком в javafx.scene.web.webview. Он отображается в виде квадратов. Вот пример кода: < /p>
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
WebView webView = (WebView) scene.lookup("#web");
WebEngine engine = webView.getEngine();
String html = """
გამარჯობა, ეს არის ტესტი.
""";
engine.loadContent(html);
stage.setTitle("Hello!");
stage.setScene(scene);
stage.show();
}
и результат:
Я использую
org.openjfx
javafx-web
23.0.2
Подробнее здесь: https://stackoverflow.com/questions/796 ... eb-webview