You can't find the encoding the user used to write the text file. You can maybe: A. force the users to write UTF-8 (or whatever the default encoding should be) B. assume the encoding is UTF-8 (or whatever the default encoding should be) C. let the user change the encoding if THEY think it's not ok.
B + C is kinda like what the browsers do. BR, Adrian Vintu http://adrianvintu.com PS for UTF-8 the html should look like <html><head><meta http-equiv="Content-Type"content="text/html; charset=UTF-8"/> On Thu, Mar 25, 2010 at 3:17 PM, brijesh masrani <masrani.brij...@gmail.com>wrote: > > Thanks for ur replay Adrian Vintu , > I have used that but now i came to know that The problem is with Encoding > So if u have any idea about how to know which > encoding was used for file than let me know. > > > > > > On Thu, Mar 25, 2010 at 5:43 PM, 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.