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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:40:28+00:00 2026-05-19T14:40:28+00:00

Is it UTF-16? 32? Something else? I want to look into this for performance

  • 0

Is it UTF-16? 32? Something else?

I want to look into this for performance reasons, since I’m converting a lot of strings from UTF-8 to “native NSString“, and the performance penalty seems to land on __CFFromUTF8, which is a built-in conversion function. Btw: I’m just guessing thatNSUnicodeStringEncoding is what is used internally, since NSString‘s fastestEncoding returns that value (i.e. for international strings; when using ANSI, MacRomans is returned).

  • 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-19T14:40:29+00:00Added an answer on May 19, 2026 at 2:40 pm

    Testing using dataUsingEncoding: indicates NSUnicodeStringEncoding is little-endian UTF-16 preceded with a byte order mark (on both the simulator and a real device) and Apple’s String Programming Guide for Cocoa says “NSString objects are conceptually UTF-16 with platform endianness”, so I’d think it’s reasonable to assume UTF-16 is used internally.

    (the same guide goes on to say “That doesn’t necessarily imply anything about their internal storage mechanism”, so they’re fully reserving the right to change this in future)

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

Sidebar

Related Questions

I want to read UTF-8 input in Perl, no matter if it comes from
I am interested in writing utf-8 encoded strings to a file. I did this
On some systems it is UTF-8, on others latin-1. How do you set this?
I have to import some UTF-8 encoded text-file into my C++Builder 5 program. Are
i just did a plain old mysql dump with something like this mysqldump -h
Flex uses by default UTF-8. I have not fount a way to specify a
I need to get UTF-8 working in my Java webapp (servlets + JSP, no
I'm having some internationalisation woes: My UTF-8 string fields are being rendered in the
What is the difference between UTF and UCS. What are the best ways to
I'm using Server.HtmlEncode on a utf-8 string in asp-classic, which works fine until there

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.