Web page at data:text/html not available with certain WebView text/html content strings
08:54 25 Apr 2012

I am using the following Java code to create some HTML for displaying content.

public String htmlFromArrayList(ArrayList a) {

    StringBuilder returnStringBuilder = new StringBuilder();

    for (TSI i : a) {
        returnStringBuilder.append("

"); returnStringBuilder.append(i.itemTitle); returnStringBuilder.append("

"); returnStringBuilder.append(i.itemText); returnStringBuilder.append("

"); } return returnStringBuilder.toString(); }

To load the string I use

mWebView.loadData(htmlFromArrayList(mSummaryItemArrayList), "text/html", null);

Now this works for about 60% to 70% of my ArrayList, but for the others I get an error when I open the TSI:

The web page at data:text/html;null,%3Cp%E.......p%3E might be temporarily down or it may have moved...

I am assuming this has something to do with strange characters in the charset. What does the error message mean?

android character-encoding android-webview