Displaying iso-8859-1 encoded content in WebView
<p>I am obtaining HTML coded content from an SQlite database that I would like to display in a WebView . I am currently using:</p>

<pre><code>public class ShowAbstracts extends Activity {
 public void onCreate(Bundle savedInstanceState) 
 {
    super.onCreate(savedInstanceState);
    Bundle extras = getIntent().getExtras();
    if (extras != null) {
         String body = extras.getString(DatabaseHelper.KEY_BODY);
         WebView webview = new WebView(this);
         setContentView(webview);
         String summary = "&lt;html&gt;&lt;body&gt; "+body+" &lt;/body&gt;&lt;/html&gt;";
         webview.loadData(summary, "text/html", "iso-8859-1");
    }   
 }
}
</code></pre>

<p>It works in that it opens a WebView and displays the contents but I get strange characters and for some content it just crashes. The Database is ISO-8859-1 encoded.
Is there any way to take care of the special characters in my database content and display them properly?</p>

<p>Thanks very much in advance!</p>

<p>Rik </p>
