Re: Converting C strings into NSStrings (and vice versa)
Re: Converting C strings into NSStrings (and vice versa)
- Subject: Re: Converting C strings into NSStrings (and vice versa)
- From: Tito Ciuro <email@hidden>
- Date: Thu, 27 Apr 2006 07:55:43 -0700
Paolo,
On 27/04/2006, at 7:38, Paolo Bertani wrote:
Unfortunately if the c string contains characters like uppercase
accented U (this is how it appears on Mac, on PC it's a lowercase
accented u) the method returns nil!
Use the following methods:
+ (id)stringWithUTF8String:(const char *)bytes
- (const char *)UTF8String
- (id)initWithUTF8String:(const char *)bytes
-- Tito
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden