• 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: NSLocalizedString, genstrings, and Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLocalizedString, genstrings, and Unicode


  • Subject: Re: NSLocalizedString, genstrings, and Unicode
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 15 Aug 2008 16:32:21 -0400
  • Organization: Rogue Research

On 8/15/08 1:13 PM, Aki Inoue said:

>Yes, the compiler shipped with Xcode 3.0 and later supports UTF-8 in
>constant strings.

Aki,

Thanks for your reply.

I'm not sure you understood however.  I know that the compiler accepts
UTF8 in constant NSStrings, but what I'm not sure about is the
'genstrings' command line tool (see 'man genstrings').  I've tested, and
genstrings works with non-ASCII strings, but the docs say it doesn't.  I
want to be sure the docs are just old and that I'm not getting lucky.

>Still it's recommended to keep your constant strings ASCII-only for
>performance.

Well, performance is secondary to correctness.

Thanks,

Sean


>Aki
>
>On 2008/08/15, at 12:09, Sean McBride wrote:
>
>> Hi all,
>>
>> The docs for NSLocalizedString() say "In order to be parsed
>> correctly by
>> genstrings, 'key' should not contain any high-ASCII characters."
>>
>> On 10.5.4 / Xcode 3.1, this does not seem to be true.  Anyone know if
>> the docs are simply out of date?  I suspect that since 10.5 now allows
>> UTF8 in @"" strings that NSLocalizedString/genstrings were updated
>> as well.


_______________________________________________

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

  • Follow-Ups:
    • Re: NSLocalizedString, genstrings, and Unicode
      • From: Aki Inoue <email@hidden>
References: 
 >NSLocalizedString, genstrings, and Unicode (From: "Sean McBride" <email@hidden>)
 >Re: NSLocalizedString, genstrings, and Unicode (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Making a bound view re-read its value
  • Next by Date: Re: NSLocalizedString, genstrings, and Unicode
  • Previous by thread: Re: NSLocalizedString, genstrings, and Unicode
  • Next by thread: Re: NSLocalizedString, genstrings, and Unicode
  • Index(es):
    • Date
    • Thread