Re: NSString comparison with locale single character error
Re: NSString comparison with locale single character error
- Subject: Re: NSString comparison with locale single character error
- From: Conor Dearden <email@hidden>
- Date: Thu, 16 Nov 2006 10:58:56 +0100
> If you want the first character, you have to use:
>
> [sortString substringWithRange:[sortString
> rangeOfComposedCharacterSequenceAtIndex:0]]
>
> to handle characters that contain more than one code point. Try
> fixing that first.
Thank you Deborah. I was hoping it would be something simple I was
overlooking. Unfortunately the behaviour is the same, composed characters
crossed my mind but I figured if the problem lay with creating the substring
I would not get the display of the single letter correctly. I have filed the
bug report ID# 4840364.
Conor
_______________________________________________
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