tuarua / WebViewANE

WebView Adobe Air Native Extension for macOS 10.10+, Windows Desktop, iOS 9.0+ and Android 19+. This ANE provides access to a more modern webview from AIR.
Apache License 2.0
183 stars 53 forks source link

UTF-8 Encoding #125

Closed lgignoud closed 6 years ago

lgignoud commented 6 years ago

I have an issue with string encoding, when using webView.callJavascriptFunction(): I can't get the strings on the javascript side to be encoded in UTF-8.

The problem can be reproduced in the example function StarlingRoot.onAsJsAsBtn(), by passing a string with an accent:

webView.callJavascriptFunction("as_to_js", asToJsCallback, 1, "é", 77);

When show in devTools, the "é" become "é".

Am I missing some settings ?

tuarua commented 6 years ago

Is this on Windows ?

lgignoud commented 6 years ago

Hi Tuarua,Yes, Windows 7.

tuarua commented 6 years ago

This is now fixed in 1.3.2

lgignoud commented 6 years ago

Fantastic support for this amazing piece of tech. Will test it as soon as I can. Thanks !