Android: WebView unable to show ‘%’ percentage sign


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


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 :)