WebView.loadDataWithBaseURL () doesn't work with special characters like%

Can anyone please tell what other characters need to be converted before loading data into webview.

view.loadDataWithBaseURL ("data:", htmlString, "text / html", "utf-8", htmlString);

+3


source to share


1 answer


Try it ("data://", htmlString, "text/html", "utf-8", null)

.



This should load, although the behavior of the Back button may be incorrect.

+4


source







All Articles