Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conflicting encodings issue in a Cocoa app



(By the way, in 10.5, GCC now allows you to use non-ascii characters in string literals right in your source code. So there's no need to construct a string with an $(D+P(B in it programmatically, as long as you're building with Xcode 3.0.)


What will be the output encoding in this case ? GCC generate utf-8 or it uses the source file encoding ?

Regardless of GCC binary C string encoding settings, the content of constant CF/NSStrings are stored in UTF-16 in this case.


So, as long as your file encoding matches the GCC's file encoding setting (see -finput-charset) which is default to UTF-8, it just works.

Aki
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Conflicting encodings issue in a Cocoa app (From: "Ewan Delanoy" <email@hidden>)
 >Re: Conflicting encodings issue in a Cocoa app (From: Jens Alfke <email@hidden>)
 >Re: Conflicting encodings issue in a Cocoa app (From: Jean-Daniel Dupas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.