• 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: Cant't use UTF-8 source files. False string interpretation.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Cant't use UTF-8 source files. False string interpretation. (From: Bernd Carl <email@hidden>)
 >Re: Cant't use UTF-8 source files. False string interpretation. (From: Clark Cox <email@hidden>)
 >Re: Cant't use UTF-8 source files. False string interpretation. (From: Bernd Carl <email@hidden>)

  • Prev by Date: Re: NSTableView/NSPopUpButtonCell Mysteries
  • Next by Date: Re: NSImage and flipping
  • Previous by thread: Re: Cant't use UTF-8 source files. False string interpretation.
  • Next by thread: Again: Non-activating Window
  • Index(es):
    • Date
    • Thread