• 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: Displaying different languages in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying different languages in an NSTableView


  • Subject: Re: Displaying different languages in an NSTableView
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 14 Oct 2002 14:14:21 +0200

On Monday, October 14, 2002, at 12:48 , Michael James wrote:

As I understand all Unicode strings are supposed to have that BOM character

Well, UTF16 should have the 0xfeff leader character (it's not either feff or fffe, but always feff; it might look like fffe though due to different endianness), and it may be worth adding that hi-level methods like -stringWithContentsOfFile: take this into account, and if there's the leader, they use UTF16 automatically (and with correct endianness).

OTOH, with other encodings (including Unicode UTF8) we are still stuck with external information (hi-level API just uses default C string encoding of the system) or heuristics. Also, occassionally you might encounter UTF16 data without the BOM leader.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: 
 >Re: Displaying different languages in an NSTableView (From: Michael James <email@hidden>)

  • Prev by Date: Re: Cocoa Books (was New to Cocoa)
  • Next by Date: Re: EOF - was (Cocoa Books (was New to Cocoa) )
  • Previous by thread: Re: Displaying different languages in an NSTableView
  • Next by thread: Re: Displaying different languages in an NSTableView
  • Index(es):
    • Date
    • Thread