• 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: Ignore accents when comparing strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


&gt;&gt;&gt;Here's a real-life example :
&gt;&gt;&gt;
&gt;&gt;&gt;NSString *mot1 = @&quot;arc&quot;;
&gt;&gt;&gt;NSString *mot2 = @&quot;a&quot;;
&gt;&gt;&gt;NSString *mot3 = @&quot;à&quot;;
&gt;&gt;
&gt;&gt;Unless things have changed recently, GCC isn't UTF-8 aware and may
&gt;&gt;be doing strange things to your text. Try reading your strings in
&gt;&gt;from a file or from the UI and try again.
&gt;
&gt;gcc works fine with UTF-8, the problem is @&quot;&quot; is only defined for
&gt;7-bit ASCII strings. Try
&gt;NSString *mot3 = [NSString stringWithUTF8String:&quot;à&quot;];
&gt;


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
References: 
 >Re: Ignore accents when comparing strings (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
  • Next by Date: Re: [OT] user banned from the list
  • Previous by thread: Re: Ignore accents when comparing strings
  • Next by thread: Re: Ignore accents when comparing strings
  • Index(es):
    • Date
    • Thread