Android: WebView unable to show ‘%’ percentage sign

android-banner

When you use WebView and pass HTML to it if that HTML code contains “%” – percentage sign you would have “Web Page not Available” error.

Webpage Not Available

% ERROR

let’s see this simple code

simply the error still exists.
after searching the internet, I found a nice and easy solution.

the solution is to replace all the % sings in the HTML code with

(How HTML sees the %).

If you think something is wrong please feel free to comment :)