you may use:

loadDataWithBaseURL (null, content, "text/html", "utf-8",
"about:blank");


On Feb 13, 2:33 pm, Mark Murphy <[email protected]> wrote:
> Chister Nordvik wrote:
> > String xml = "<html>" +
> >   "<body>" +
> >         "Norwegian chars: &aring;&oslash;" +
> >   "</body>" +
> > "</html>";
> > myWebView.loadData(xml, "text/html", "UTF-8");
>
> > This code works for latin-1 but as far as I know there are not HTML
> > entities defined for Latin-2 so I was wondering if there are other
> > solutions to displaying non latin-1 in aWebview? I've tried encoding
> > the string given to loadData as UTF-8 but with little success...
>
> The string provided to loadData() is loaded via a data: URL and so needs
> to be URL-encoded, apparently.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~---------~--~----~------------~-------~--~----~
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