sa0017 / stagewebviewbridge

Automatically exported from code.google.com/p/stagewebviewbridge
0 stars 0 forks source link

can't marshal utf-8 data #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to send a utf-8 string through StageWebView.call, such as "räksmörgås"
2. You get some variation of "INVALID_CHARACTER_ERR: DOM Exception 5"

What is the expected output? What do you see instead?

We should be able to marshal utf-8 strings through StageWebViewBridge

What version of the product are you using? On what operating system?

StageWebViewBridge_svn_109_build_0.0.723

Please provide any additional information below.

This is happening because btoa/atob don't work with utf-8 chars in most 
browsers.  A workaround is described here: 
https://developer.mozilla.org/en-US/docs/DOM/window.btoa

Original issue reported on code.google.com by paleozogt on 14 Aug 2012 at 7:54

GoogleCodeExporter commented 8 years ago
should have said 'unicode' rather than utf-8, but i can't edit the ticket

Original comment by paleozogt on 14 Aug 2012 at 7:55