This is apparently caused by a known bug in WebView , where if you have any percentages in the data provided, the data is interpreted as a URL.
A known workaround, as mentioned in the bug report, replace all % with % .
Another workaround that seems to work quite well is suggested in a similar SO post and should also cover any other characters that might cause the same problem:
mWebView.loadData(URLEncoder.encode(data,"utf-8").replaceAll("\\+"," "), "text/html", "utf-8");
source share