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 9187601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:48:37+00:00 2026-06-17T19:48:37+00:00

In my application, i’m using a Webview to load different versions of a website

  • 0

In my application, i’m using a Webview to load different versions of a website based on user’s preferred language.Using WebFrame’s loadRequest method for this –

[[aWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:aStr]]];

If, aStr contains english alphabets only,i.e if aStr = http : // ……/language/English ,then its working fine & the webpage loads. But if aStr is something like http: //……/language/ウンウンウン(Japanese), nothing happens, neither WebView loads, nor it throws any error. If i paste the same link in Safari, the webpage loads there. Any suggestion on how to fix this issue?

I’ve also tried [aWebView setMainFrameURL:aStr] method. Same issue there too.

  • 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-06-17T19:48:38+00:00Added an answer on June 17, 2026 at 7:48 pm

    You have to escape the invalid URL characters in aStr before you can use it to create the NSURL using [aStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding].

    //Encode invalid URL characters
    aStr = [aStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
    [[aWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:aStr]]];
    

    URLWithString: returns a nil value if the string is invalid. Which is why you your UIWebView has no error and does not load anything.

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

Sidebar

Related Questions

Application configuration: Web application using java first method of creating JAX-WS 2.0 Web Services
My application is connecting to a web service rpc/encoded. Im using Axis 1.4. When
The application prepared by me is using GCM to get push notifications from the
Application View: @model Models.ApplicationModel @using (Html.BeginForm()) { @Html.HiddenFor(m => m.SectionID); @Html.HiddenFor(m => m.CurrentSectionName); <div
Application: This is a workshop proposal system for a conference. A user can create
Application I am working on is desktop application based on healthcare. It is fully
// Application Drupal 7 // Problem Background My website imports product data from a
Application db connection in web service. i haveto connect the db using that web
Application was built using MS interop, to export .xls to infoPath and vice versa.
Application crashes on trying to access [tableView cellForRowAtIndexPath:indexPath] in the heightForRowAtIndexPath delegate method. -

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.