Re: Inserting localized text to NSTextView
Re: Inserting localized text to NSTextView
- Subject: Re: Inserting localized text to NSTextView
- From: "Sean McBride" <email@hidden>
- Date: Wed, 25 Apr 2007 17:30:54 -0400
- Organization: Rogue Research
On 2007-04-18 11:30, Murat Konar said:
>Note also that you can't generally use string literals like @"abcd"
>embedded in source code for many languages (source files are parsed
>as UTF-8, I believe, and many scripts require UTF-16 to get all
>characters). See
><http://developer.apple.com/documentation/MacOSX/Conceptual/
>BPInternational/Articles/StringsFiles.html> and the Hillegas book.
Source files are interpreted by gcc according to the -finput-charset
flag, which defaults to UTF8, but you could use UTF16 if you wanted.
Except I don't believe Xcode ever passes -finput-charset. :( Anyway,
that aside, the @"" syntax expects a certain encoding, MacRoman I believe.
So basically, the safest thing to do is only use 7bit ASCII with @"".
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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