Restore explicit conversion to UTF-8 in wxGTK wxWebView code

This was somehow removed by af8f7f33c3 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.
This commit is contained in:
Vadim Zeitlin 2017-10-22 17:16:49 +02:00
parent ae88141fa0
commit b22e361245

View File

@ -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);