Re: Displaying different languages in an NSTableView
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.