Re: Character encoding of C-string runtime functions?
Re: Character encoding of C-string runtime functions?
- Subject: Re: Character encoding of C-string runtime functions?
- From: Greg Parker <email@hidden>
- Date: Tue, 11 Jun 2013 14:32:42 -0700
On Jun 11, 2013, at 2:21 PM, Rick Mann <email@hidden> wrote:
> A function like sel_getName() returns a const char* NULL-terminated C string. What is the character encoding of this string?
Formally unspecified. It's possible to create a selector or class at runtime with arbitrary zero-terminated bytes and the runtime won't care.
In practice you should use UTF-8. That's what the compiler does.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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