Re: Ignore accents when comparing strings
Re: Ignore accents when comparing strings
- Subject: Re: Ignore accents when comparing strings
- From: "Simon alias Trax" <email@hidden>
- Date: Thu, 06 Jan 2005 02:43:13 +0000
>>>Here's a real-life example :
>>>
>>>NSString *mot1 = @"arc";
>>>NSString *mot2 = @"a";
>>>NSString *mot3 = @"à";
>>
>>Unless things have changed recently, GCC isn't UTF-8 aware and may
>>be doing strange things to your text. Try reading your strings in
>>from a file or from the UI and try again.
>
>gcc works fine with UTF-8, the problem is @"" is only defined
for
>7-bit ASCII strings. Try
>NSString *mot3 = [NSString stringWithUTF8String:"à"];
>
I doubt this could be possible, because anything else works properly, ie
displaying, searching, etc...
Besides, to form my array of strings, I use this line :
dict = [[NSArray alloc] initWithArray:[[NSString
stringWithContentsOfFile:fich] componentsSeparatedByString:@"\r"]];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden