Re: SQLite and Unicode
Re: SQLite and Unicode
- Subject: Re: SQLite and Unicode
- From: Michael Ash <email@hidden>
- Date: Tue, 7 Apr 2009 16:26:03 -0400
2009/4/7 Тимофей Даньшин <email@hidden>:
> I am deeply and sincerely ashamed of myself.
> The point is that i get that input string by splitting the string in my
> textView ([[myTextView textStorage] string]) into sentences. During that
> procedure i check every char if it is a sentence terminator (?! or
> linebreak). And i do that by using the -characterAtIndex: method. And the
> thing is that that method returns wrong characters if it deals with unicode
> ones. Thanks Keary Suska for pointing that out to me.
>
> I will now have to find another "unicode-safe" way to split the string into
> sentences.
>
> Thanks again for all your help.
> And if you could give me a hint on how to safely get unicode chars at a
> given position of a string, I'd be even more grateful :)
-characterAtIndex: works just fine for any characters. It's one of the
primitive methods of NSString, it *has* to work for any character. If
it's not working for you with unicode characters, then you're using it
wrong. Post your code.
Mike
_______________________________________________
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