Can you produce a minimal test case, a simple app with only a WebView and the loadData call, which works correctly in 1.x but not in 2.0? If so, then it definitely sounds like a bug to me, and you should report it at http://b.android.com (attaching your test case APK). If you can't reproduce it in that way, then you can't rule out it being a bug elsewhere in your app, rather than in the platform.
String On Oct 29, 5:10 am, Cryrivers <[email protected]> wrote: > Wv is an instance of WebView. > > Let’s see the following code: > > wv.loadData(htmlSourceCode,"text/html","utf-8"); > > The code works well in Android 1.1,1.5,1.6. But in Android 2.0,it > seems that Android just ignore encoding parameter (i.e "utf-8"), using > ISO-8859-1 encoding by default. So that WebView can’t display some > characters (like Chinese, Japanese characters) properly. Due to it > working well in previous version of Android, I don’t think there’s any > programming error.Or I just use some deprecated methods? I’m very > confused. And eager for your solutions. > > Best regards, > > Cryrivers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Discuss" 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-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
