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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:57:05+00:00 2026-05-22T23:57:05+00:00

I made multi-language unicode files and tried to use it in my app, but

  • 0

I made multi-language unicode files and tried to use it in my app, but failed.

I tried fgets and fgetws, and saved text file to various encodings(ex: UTF-8, ASCII, Unicode, Unicode(BE)) but no use.

Please tell me how to import unicode text files in iPhone app.

  • 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-22T23:57:06+00:00Added an answer on May 22, 2026 at 11:57 pm

    Is there any reason to stick to C API’s?
    Also, its tricky to rely on wchar (and wide char functions) for Unicode support on different platforms (you shall be warned about this in Unicode specifications “Section 5.2 of Unicode specifications” http://www.unicode.org/versions/Unicode6.0.0/ch05.pdf).

    If reading Unicode is the only concern, you may try this code snippet (assuming your file(inp.rtf) is in main resource bundle)

    NSString *filePath = [[NSBundle mainBundle] pathForResource:@”inp” ofType:@”rtf”];
    NSData *myData = [NSData dataWithContentsOfFile:filePath];
    if (myData) {
    NSString *str = [[NSString alloc] initWithData:myData encoding:NSUnicodeStringEncoding];
    }

    You may replace “NSUnicodeStringEncoding” with the suitable encoding.

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

Sidebar

Related Questions

I'm planning on loading multi-paragraph content from a text file and displaying it on
I made a dynamically multi upload form with file type inputs. When you select
i have a multi language web site... i made two folders in visual studio
i have made a few multi activity database applications using sqlite, but i get
I made a multi-threaded program in C++ to break passwords of 7 characters long
I am trying to develop a multi-screen app for the Google TV platform using
I'm building a multi-tenant app with ASP.NET MVC and have a problem with validating
I have a multi-module maven project made up of three sub-modules: web , service
I am trying to make multi-weighted graphs. Input is to be made in following
In my multi-threading server app, a thread per client is generated in this way:

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.