this code,
         ...
         s = "\u02c8\u0254\u0279\u0292\u0259";
         mWebView.loadDataWithBaseURL("fake://", s, "text/html", 
"utf-8", "about:blank");

results in garbage chars in the web view,



in the debugger. i actually read the string from somewhere else using 
utf-8 encoding, so it must be a utf-8 encoded string.

printed to the terminal, the string looks correct.



the string

\u00e6\u00f8\u00e5

passed to the webview renders the correctly. i'm pretty confused about 
what's going on. it appears that i am correctly passing the string to 
the webview as the second string renders correctly. could the engine 
behind the webview be missing a mapping for some utf-8 characters? i'm 
not even sure if that question makes sense.

and ideas are appreciated.

-- 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

<<image/png>>

<<image/png>>

<<image/png>>

Reply via email to