• 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: String Encoding Detection (Revisited)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: String Encoding Detection (Revisited) (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: IB Woes
  • Next by Date: Re: Objective-C or C++ or something...
  • Previous by thread: Re: String Encoding Detection (Revisited)
  • Next by thread: Re: String Encoding Detection (Revisited)
  • Index(es):
    • Date
    • Thread