Re: Ignore accents when comparing strings
Re: Ignore accents when comparing strings
- Subject: Re: Ignore accents when comparing strings
- From: Brendan Younger <email@hidden>
- Date: Wed, 05 Jan 2005 19:21:34 -0600
I think (mostly) everyone here is missing the point. The accented "a",
also known as U+0030, does not compare before the word "arc" as it
should (especially since it compares equal to a non-accented "a"). The
original poster had a legitimate problem which had nothing to do with
file encodings but that seems to be all everyone is talking about. The
question is, is it a bug that the accented "a" compares after the word
"arc" or is it a misunderstanding?
Brendan Younger
On Jan 5, 2005, at 6:58 PM, Kevin Ballard wrote:
gcc works fine with UTF-8, the problem is @"" is only defined for
7-bit ASCII strings. Try
NSString *mot3 = [NSString stringWithUTF8String:"à"];
On Jan 5, 2005, at 7:22 PM, Andrew Farmer wrote:
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.
_______________________________________________
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