Re: [android-developers] Using WebView with local data
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 9/9/10 14:11 , Fabrizio Giudici wrote:
>
> I'm using WebView to render a simple HTML document that I've loaded
> in memory from a file. The document contains non-latin characters,
> and I can say they are correctly loaded since if I put it into a
> regular TextView, all the text is properly rendered.
>
> Now, I suppose that since I've already loaded the text in memory,
> I have to specify the unicode-16 enconding, right?
>
> webView.loadData(myText, "text/html", "unicode-16");
>
> But I have problems with non-latin characters. Note that I've
> URI-encoded the four special characters as described in the javadoc
> of WebView.
>
>
Anybody here?
- --
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
Fabrizio.Giudici@tidalwave.it
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkySczMACgkQeDweFqgUGxe/yACfbunEDP8khqWOiLXGGMhqoGUB
FF0An0LtOz7PxK4DckU4Xyr5lwLocqUT
=JXRv
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home