Nice trick Bob. This totally slipped my mind :) I will use it in the future :)
On Thu, Mar 25, 2010 at 3:27 PM, Bob Kerns <r...@acm.org> wrote: > If you add HTML tags, you also have to convert the text, converting < and > > and & to <, >, and &, respectively. > > But there's an easier way. Instead of > webview.loadData(page, "text/html", "utf-8") -- use "text/plain" instead, > and leave off the tags. > > > On Thu, Mar 25, 2010 at 5:13 AM, brijesh masrani < > masrani.brij...@gmail.com> wrote: > >> Hello >> >> I am reading a txt file using Stringbuffer and try to show it in webview >> by adding simple html tags (<html><Body>"My txt content"</html></Body>) >> but it is not showing Spacial characters so can u please help me or any >> other way to show txt file in Web Browser.... >> > > -- > 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe from this group, send email to android-developers+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.