• 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: Parsing .vcf files SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing .vcf files SOLVED


  • Subject: Re: Parsing .vcf files SOLVED
  • From: Donald Brown <email@hidden>
  • Date: Thu, 17 Oct 2002 15:42:33 -0500

NSUnicodeStringEncoding assumes a header to the data that gives the byte
order (0xFFFE or 0xFEFF). This UTF16 doesn't include the header.

Donald

on 10/17/02 2:50 PM, Clark S. Cox III at email@hidden wrote:

>> Yes! While there's not UTF16 encoder, it can be turned into an
>> NSString* by
>>
>> outString = [[NSString alloc] initWithCharacters:[dataIn bytes]
>> length:([dataIn length]/2)];
>
> What's wrong with:
>
> [[NSString alloc] initWithData: dataIn encoding:
> NSUnicodeStringEncoding];

--
Donald Brown
email@hidden
http://www.eamontales.com

We have met the enemy and he is us - Pogo
_______________________________________________
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.

  • Follow-Ups:
    • Re: Parsing .vcf files SOLVED
      • From: Ondra Cada <email@hidden>
    • Re: Parsing .vcf files SOLVED
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Re: Parsing .vcf files SOLVED (From: "Clark S. Cox III" <email@hidden>)

  • Prev by Date: Re: How to avoid a Windows interface on OS X?
  • Next by Date: Re: How to avoid a Windows interface on OS X?
  • Previous by thread: Re: Parsing .vcf files SOLVED
  • Next by thread: Re: Parsing .vcf files SOLVED
  • Index(es):
    • Date
    • Thread