Hej All

Webkit does not show utf-8 from a httppost responce ! But it shows it
in Toast OK !!
Can anyone help?

        public void LoadHtml(String str) {
                Settings();
        final String mimeType = "text/html";
        final String encoding = "utf-8";
                final Activity activity = this;
                browser.setWebChromeClient(new WebChromeClient() {
                   public void onProgressChanged(WebView view, int progress) {
                     activity.setProgress(progress * 1000);
                   }
                });
                browser.setWebViewClient(new WebViewClient() {
                   public void onReceivedError(WebView view, int errorCode, 
String
description, String failingUrl) {
                     Toast.makeText(activity, "Oh no! " + description,
Toast.LENGTH_SHORT).show();
                   }
                });
                if (str!=null)
                        browser.loadData("<html><body>"+str+"</body></
html>",mimeType,encoding);
                else
                        browser.loadData("Empty Responce 
...",mimeType,encoding);

        }


BR
Maali

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to