Re: Converting wchar_t string to NSString
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.