• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting wchar_t string to NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting wchar_t string to NSString


  • Subject: Re: Converting wchar_t string to NSString
  • From: Andrew Thompson <email@hidden>
  • Date: Sun, 8 Feb 2004 20:35:57 -0500

On Feb 8, 2004, at 6:21 PM, David Elliott wrote:



One other thing I forgot to ask. I'm told when using [NSString +stringWithCharacters:length:] I should pass it UTF-16 data. Does that hold true all the way back to OS 10.1?

It probably goes back to some version of OpenStep :) Though I don't know if UTF-16 is as old as NSString. Perhaps it was UCS-2 at some point...?

You should definitely be OK assuming UTF16 on 10.1.
Different versions of Mac OS had different levels of Unicode support. From memory:

Panther: Unicode 4.0?
Jaguar: Unicode 3.2?
10.1: Unicode 2 (?? not sure)

Not that it matters unless you're likely to be using code points outside the Basic Multilingual Plane, or particularly obscure stuff that's been added recently.

AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

(see you later space cowboy ...)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Converting Japanese C- string to NSString (From: Darrin Cardani <email@hidden>)
 >Re: Converting Japanese C- string to NSString (From: John Stiles <email@hidden>)
 >Converting wchar_t string to NSString (From: David Elliott <email@hidden>)
 >Re: Converting wchar_t string to NSString (From: Glen Low <email@hidden>)
 >Re: Converting wchar_t string to NSString (From: Andrew Thompson <email@hidden>)
 >Re: Converting wchar_t string to NSString (From: David Elliott <email@hidden>)
 >Re: Converting wchar_t string to NSString (From: Glen Low <email@hidden>)
 >Re: Converting wchar_t string to NSString (From: David Elliott <email@hidden>)

  • Prev by Date: Re: strange semi-newbie issue SOLVED with questions
  • Next by Date: adding to my UI
  • Previous by thread: Re: Converting wchar_t string to NSString
  • Next by thread: Size of the Finder's sidebar?
  • Index(es):
    • Date
    • Thread