From b22e36124581b0ea1244f2eee52e0f4f0c744283 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 22 Oct 2017 17:16:49 +0200 Subject: [PATCH] Restore explicit conversion to UTF-8 in wxGTK wxWebView code This was somehow removed by af8f7f33c3eab7d4688266596d06b2a82089ac62 but is needed: implicit conversion uses the current locale encoding, which is often, but _not_ always, UTF-8, while we always need to use UTF-8 with WebKit functions. --- src/gtk/webview_webkit2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/webview_webkit2.cpp b/src/gtk/webview_webkit2.cpp index ff5076fffc..b7c03b4651 100644 --- a/src/gtk/webview_webkit2.cpp +++ b/src/gtk/webview_webkit2.cpp @@ -1119,7 +1119,7 @@ bool wxWebViewWebKit::RunScriptSync(const wxString& javascript, wxString* output { GAsyncResult *result = NULL; webkit_web_view_run_javascript(m_web_view, - javascript, + javascript.utf8_str(), NULL, wxgtk_run_javascript_cb, &result);