Re: String Encoding Detection (Revisited)
Re: String Encoding Detection (Revisited)
- Subject: Re: String Encoding Detection (Revisited)
- From: Dustin Voss <email@hidden>
- Date: Thu, 7 Aug 2003 17:36:06 -0700
On Thursday, August 7, 2003, at 03:33 PM, Francisco Tolmasky wrote:
I have been looking the the sniffer stuff, and have a question. Is
TextEncoding the same thing as NSStringEncoding. Not are they the
same data type, like unsigned, but will a value in TextEncoding be
analogous to one with the same number as an NSStringEncoding. Like if
0x029393 is Mac OS Roman in TextEncoding, is it also 0x029393 as an
NSStringEncoding?
Looking at the header files, the TEC encoding constants are the same as
the CF encoding constants, and CF offers functions to convert them to
and from NS encoding constants.
You can also do all of your conversion work with Text Encoding
Converter. That way you don't have to find the NS encoding
corresponding to the TEC encoding. You can use TEC to get the Unicode,
and make that into an NSString directly.
_______________________________________________
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.