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

  • Home
  • SEARCH
  • 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 4071638
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:46:58+00:00 2026-05-20T16:46:58+00:00

This doesn’t load my HTML string in the WebView. NSString *htmlString = @<html><body><h1>My First

  • 0

This doesn’t load my HTML string in the WebView.

NSString *htmlString = @"<html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>";
//I have a very large HTML content here.. For sample I have given a small content       
[teaserWebView loadHTMLString:htmlString baseURL:nil];

Do I need to use some encoding? Any help will be appreciated.

Thanks

  • 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-20T16:46:58+00:00Added an answer on May 20, 2026 at 4:46 pm

    Edit: Solution found in comments on question.

    In your large HTML, Replace % with %25.

    I really don’t know if that will help, but it is required in Android WebView. All encoding is automatic except it does not know whether or not to encode %.

    There is a better way to encode everything, but it is not required and I have no clue how to do it in iPhone.

    See this page for more info: http://www.w3schools.com/TAGS/ref_urlencode.asp

    Also you may want to look up “URL Encode iPhone”.

    I know this is not a URL, but in Android it gets converted to a data: URL where all the data is in the URL. It likely works the same way in iPhone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about locking. This doesn't have to be only about record
First off, I apologize if this doesn't make sense. I'm new to XHTML, CSS
How come this doesn't work (operating on an empty select list <select id=requestTypes></select> $(function()
I've used boost serialization but this doesn't appear to allow me to generate xml
Can anybody tell my why this doesn't work in the Android emulator? From the
I'm trying to hide the Title field in a list. This doesn't seem to
This question doesn't relate only to MouseEvent.CLICK event type but to all event types
I'm sorry, but this keyword doesn't mean anything to me... Can someone give me
Why doesn't this Google Chart API URL render both data sets on this XY
Why doesn't this work (when parameter is set to 1) : SELECT * FROM

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.