rangeOfString & UTF8
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