• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inserting localized text to NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Inserting localized text to NSTextView
      • From: Sherm Pendley <email@hidden>
    • Re: Inserting localized text to NSTextView
      • From: Uli Kusterer <email@hidden>
    • Re: Inserting localized text to NSTextView
      • From: Douglas Davidson <email@hidden>
References: 
 >Inserting localized text to NSTextView (From: email@hidden)
 >Re: Inserting localized text to NSTextView (From: Murat Konar <email@hidden>)

  • Prev by Date: Re: NSArray - waste of time?
  • Next by Date: Re: Inserting localized text to NSTextView
  • Previous by thread: Re: Inserting localized text to NSTextView
  • Next by thread: Re: Inserting localized text to NSTextView
  • Index(es):
    • Date
    • Thread