Re: printing Utf8
Re: printing Utf8
- Subject: Re: printing Utf8
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 31 Oct 2012 20:07:28 +0100
Le 31 oct. 2012 à 16:31, Ken Thomases <email@hidden> a écrit :
> On Oct 31, 2012, at 10:17 AM, lbland wrote:
>
>> On Oct 31, 2012, at 10:41 AM, "Gerriet M. Denkmann" <email@hidden> wrote:
>>
>>> NSString *s = @"ร่วมรส";
>>
>> Not supported. The compiler should be issuing a warning. You need to escape the characters using a UTF encoding.
>
> That's not true. The compiler has supported UTF-8 source encoding for quite a while now.
Not only it supports UTF-8 sources, but more important, it supports unicode NS/CFString literals.
Such string will not be encoded using UTF-8 (as will be a C string literal), but as an UTF-16 NSString.
-- Jean-Daniel
_______________________________________________
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