Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7416991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:36:34+00:00 2026-05-29T07:36:34+00:00

I am fetching few html content from my server for which I am using

  • 0

I am fetching few html content from my server for which I am using JSON parsing. But this converts my html content to unicode values.

For Eg: <p>Spend minimum $10 (in a single same-day receipt) at any outlet<\/p> is getting converted to,

;p&gt;Spend minimum $10 (in a single same-day receipt) at any outlet &lt;/p&gt;

Now if I try to set this to my WebView it displays with HTML tags itself. If I try to encode the data using TextUtils.encode it displays the text with unicode values.

Can anyone help me with this.

How should I fetch a HTML content and display it in WebView?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:36:36+00:00Added an answer on May 29, 2026 at 7:36 am

    Guys thanks for your help. But I have solved this issue myself. I have elaborated my way of solving the issue.

    What I did is,

    1)convert the unicode value to Spanned like this,

    Spanned ss=Html.fromHtml(;p&gt;Spend minimum $10 (in a single same-day receipt) at any outlet &lt;/p&gt;");
    

    2)Now convert this Spanned to String like this,

    String tempString=ss.toString();
    

    3)And now set this to WebView which solved the problem,

      webView.loadData(tempString, "text/html","UTF-8");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently asynchronously fetching json documents to update elements in a few html
I'm fetching some data from an MSSQL table using the mssql_fetch_object, but the text
I am fetching an array of floats from my database but the array I
I have tried fetching MySQL query results using mysql_fetch_row() and mysql_result() and numeric values
I am fetching lots of thumbnails from a remote server and displaying them in
I got a thread running every few seconds fetching some data from a db
I'm using core data and fetching the results successfully. I've few questions regarding core
I have an xml webservice which I'm fetching using PrototypeJS. The xml has the
I know there are a few questions about this but i just cant seem
Ive made a few threads on this subject related to errors etc, but they've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.