Friday, August 19, 2011

[android-developers] Re: unicode stuff

webView.loadData(html, "text/html", "latin1");

On Aug 19, 9:48 am, Daniel Drozdzewski <daniel.drozdzew...@gmail.com>
wrote:
> On 19 August 2011 15:28, bob <b...@coolgroups.com> wrote:
>
> > I'm loading some news stuff into a WebView, but there's weird unicode
> > stuff or something with some chars (right double quotes, curly single
> > quotes).  So, instead of a right quote, there's 3 chars of gibberish
> > that show in the WebView.
>
> How do you load the content into WebView? WebView has methods, where
> you specify the encoding, which should help. Iterating 4 times over
> the whole content is going to cost...
> If someone decided to place curly quotes in the news content, you
> should by simply displaying it.
>
> --
> Daniel Drozdzewski

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

No comments:

Post a Comment