The Problem is that i am making a Ebook reader so and there is no facility
like file writing so i cant force user to write in UTF-8 encoding and i have
to show text of all encoding because i cant force user to choose the
encoding type..


On Thu, Mar 25, 2010 at 7:57 PM, Bob Kerns <[email protected]> wrote:

> If you add HTML tags, you also have to convert the text, converting < and >
> and & to &lt;, &gt;, and &amp;, 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 <
> [email protected]> 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 [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

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.

Reply via email to