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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:42:54+00:00 2026-06-10T21:42:54+00:00

I have a UIWebView in which I display a HTML file with foreign language

  • 0

I have a UIWebView in which I display a HTML file with foreign language content (in this case French), which was translated by Google.

The original English text is:

Clear – used to stop all timers and clear the amounts shown to the far
right of the view.

The translation from Google is this:

Effacer – permet d’arrêter toutes les minuteries et effacer les
montants indiqués à l’extrême droite de la vue.

This is what’s displayed in the iPhone Simulator when French is the localized language:
rendering of French translation in UIWebView

This is the code I am using to load it:

//  determine what the language for this locale is...
NSString *sysLangCode = [[NSLocale preferredLanguages] objectAtIndex:0];

//  contatenate the language code to the filename
NSURL *indexURL = [[NSBundle mainBundle] URLForResource: [NSString stringWithFormat:@"instRST-%@", sysLangCode]
                withExtension:@"html"];

//  load it...
[webView loadRequest:[NSURLRequest requestWithURL:indexURL]];

I have looked in Google, SO and UIWebView to find any settings that would make this render correctly. The font being used is Verdana.

What do I have to do to get this to render correctly?

  • 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-10T21:42:56+00:00Added an answer on June 10, 2026 at 9:42 pm

    I found the answer: see http://webdesign.about.com/od/localization/l/blhtmlcodes-fr.htm

    This is the meta tag you have to use for French and other one-character languages:

    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    

    This works for all languages, including two-character languages, like Japanese and Chinese.

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

Sidebar

Related Questions

I have an app with UIWebView which loads a remote HTML page...Now on this
I have a UIWebView which I'm using to display a variety of content, sometimes
I have a UIWebView in my app which I want to use to display
I have one UIViewController (DownloadManager) which downloads a webpage with UIWebView and display the
I have a view containing a UIWebView which is loading a google map (so
I have a piece of HTML which I am displaying inside a UIWebView using
I have a UIWebView with content populated from a Last.fm API call. This content
I have a UIViewController with an UIWebView which displays a pdf file depending which
I have a UIWebView which loads an HTML page which has some links to
I have a uiwebview which loads documents from local file system. Some of the

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.