• 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
rangeOfString & UTF8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rangeOfString & UTF8


  • Subject: rangeOfString & UTF8
  • From: Steve Cronin <email@hidden>
  • Date: Sun, 04 Oct 2009 15:48:13 -0500

Folks;

 (thePhrase) :  Geschäftsführer (CEO):

 (tString):  Geschäftsführer (CEO)

Both
curPos = [thePhrase rangeOfString: tString options:NSCaseInsensitiveSearch].location;


AND

NSLocale *tLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"de_DE"] autorelease];
curPos = [thePhrase rangeOfString: tString options:NSCaseInsensitiveSearch range:NSMakeRange(0, [thePhrase length]) locale:tLocale].location;


yield curPos == NSNotFound

Here's some printout from the console:
Printing description of thePhrase:
Gesch\u00e4ftsf\u00fchrer (CEO):

Printing description of tString:
Gesch\u00e4ftsf\u00fchrer (CEO)

What am I not understanding here?
Steve_______________________________________________

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: rangeOfString & UTF8
      • From: Clark Cox <email@hidden>
  • Prev by Date: Re: Core-data binding to all entities
  • Next by Date: Re: rangeOfString & UTF8
  • Previous by thread: Re: Clickable URLs in a UITextView
  • Next by thread: Re: rangeOfString & UTF8
  • Index(es):
    • Date
    • Thread