Re: NSString to const char
Re: NSString to const char
- Subject: Re: NSString to const char
- From: "Hamish Allan" <email@hidden>
- Date: Mon, 26 May 2008 15:05:52 +0100
On Mon, May 26, 2008 at 2:47 PM, Micha Fuhrmann <email@hidden> wrote:
> I need to pass a const char to a C++ function from an NSString.
> const char* theConstString = [theNsstring
> cStringUsingEncoding:NSUnicodeStringEncoding];
Your C++ function probably isn't expecting Unicode characters. Have
you tried NSUTF8StringEncoding?
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden