On Oct 28, 2008, at 9:14 PM, Jason Coco wrote:


On Oct 28, 2008, at 16:53 , Sean McBride wrote:

On 10/28/08 4:03 PM, Jason Coco said:

Also, you should not be using non-ascii characters in string
literals :) hopefully you're just doing this to demonstrate the issue.
You should
be doing something like this:

char *hiragana_a = { 0xE3, 0x81, 0x82, 0x00 };
NSLog(@"%@", [NSString stringWithCString:a
encoding:NSUTF8StringEncoding]);

That is no longer necessary in 10.5 / Xcode 3. You can use Unicode in
string literals in Objective-C.

Why do you say this? I thought that I may have missed something, but looking back through all the documentation, all the warnings about only including 7-bit ASCII characters in string literals still exist... even in the most recent updated documentation.

ISTR seeing this in the release notes somewhere, but can't find it now either. Anyway, see

http://lists.apple.com/archives/Cocoa-dev/2008/Apr/msg01885.html

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to