Re: Cant't use UTF-8 source files. False string interpretation.
Re: Cant't use UTF-8 source files. False string interpretation.
- Subject: Re: Cant't use UTF-8 source files. False string interpretation.
- From: Dustin Voss <email@hidden>
- Date: Mon, 16 Feb 2004 16:39:17 -0800
On 16 Feb, 2004, at 12:40 PM, Bernd Carl wrote:
Another problem it can't really solve: Manipulation of strings.
I need to split all arabic strings up into all its letters. So my
problem
wasn't really a GUI thing, than rather a Cocoa thing.
Probably I have to work it out in unicode entities but this is really
annoying.
I don't know Arabic, but I don't see why you would need to work
directly with Unicode entities. You can use NSString's
rangeOfComposedCharacterSequenceAtIndex: to iterate through the string,
collecting clusters of base characters and their non-base characters.
If you don't trust NSString, you can also use Carbon's Unicode
Utilities to go through the string character-by-character,
cluster-by-cluster, word-by-word, or line-by-line. Those functions are
documented at
<file:///Developer/Documentation/Carbon/Reference/
Unicode_Utilities_Ref/uu_refchap/function_group_3.html>.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.