Im working on an android project where I open a webpage. I have a listener if the user has no internet connection. Instead of displaying the standard “page could not be found” im giving the webview a local html file stored in my assets folder. By this line of code:
web.loadUrl("file:///android_asset/html/404error.html");
In the HTML-file i think the encoding? is “utf-8”, and it says something with javascript, if thats relevant.
Everything works fine except when displaying “ÅÄÖ”, all those characters gets replaced by a “?”
Does someone know the solution?
Thanks!
Recently i also came across the same problem as you have now. I solved it by changing the special characters from the HTML file to their respective HTML codes. You can get all the respective HTML codes for special characters on google, but this link might help you.