Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    @user113215: but you have read the documentation link for loadDataWithBaseURL() method, haven't you?? the 4th argument is called "encoding", so i called the variable "encoding" ... as you can see here it is used for the output charset: myexperiencewithandroid.blogspot.de/2011/09/… ... you should also read this: en.wikipedia.org/wiki/Character_encoding ... so i do not see your problem. Commented Jan 1, 2013 at 18:11
  • but no (data) scheme is used here in the example, only local HTML data is loaded that should be displayed in the WebView: "If the base URL uses the data scheme, this method is equivalent to calling loadData() and the historyUrl is ignored." Commented Jan 2, 2013 at 11:54
  • 1
    Ah, this is confusing. I investigated the Android source and you are correct. Using this method with the data: URL scheme results in a call to nativeLoadUrl() (where encoding denotes either Base64 or URL encoding), but otherwise this method results in a call to nativeLoadData() (where encoding denotes character set). Commented Jan 3, 2013 at 1:48