Fabrizio,

Since your data is already in a Java string, are you sure you need to specify an encoding?

-- Kostya

16.09.2010 23:42, Fabrizio Giudici пишет:
-----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
[email protected]
-----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-----



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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

Reply via email to