Re: Parsing .vcf files SOLVED
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.