0

I am loading an html page in a Webview but for special characters such as ü and ä. I got question marks in place of it. Is there a simple way to solve this or do I have to make it go through an input reader?

public class Termine extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_termine);
       WebView terminListe = (WebView) findViewById(R.id.termin_liste);
       terminListe.setWebViewClient(new WebViewClient() {

          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url){
              view.loadUrl(url);
              return true;
          }


       });

       terminListe.loadUrl("http://www.arsdecora.net/termine.html");

   }
}
Karthik
  • 4,950
  • 6
  • 35
  • 65
Markus Schmitz
  • 97
  • 3
  • 13

1 Answers1

0

After a bit of testing around and the comment by Kayaman, I have found out, that setting the html's meta charset to , everything is displayed fine.

Caution: This only works if you have access to the html directly!

Markus Schmitz
  • 97
  • 3
  • 13