title: loadDataWithBaseURL blank result
body: <p>I'd like to load a website in webview with UTF-8, because I'm having accentuation problems, so I'm trying:</p>
  
  <pre><code>myWebView.loadDataWithBaseURL("http://www.planalto.gov.br/ccivil_03/constituicao/constituicaocompilado.htm", "", "text/html", "UTF-8", null);
  </code></pre>
  
  <p>but the result is a blank screen.</p>
  
  <p>If I use loadURL("site") it loads, but I have accentuation problems. any ideas?</p>
  
  <p>edit --</p>
  
  <p>my webview setup:</p>
  
  <pre><code>WebView myWebView = findViewById(R.id.webView1);
  WebSettings webSettings = myWebView.getSettings();
  webSettings.setJavaScriptEnabled(true);
  webSettings.setAppCacheEnabled(true);
  webSettings.setDefaultTextEncodingName("utf-8");
  myWebView.setWebViewClient(new MyWebViewClient());
  
    public class MyWebViewClient extends WebViewClient {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              view.loadUrl(url);
              return true;
          }
      }
  </code></pre>
  
  <p>xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;WebView  xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/webView1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/aOYNw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aOYNw.png" alt="enter image description here"></a></p>