Re: Parsing .vcf files SOLVED
Re: Parsing .vcf files SOLVED
- Subject: Re: Parsing .vcf files SOLVED
- From: "Clark S. Cox III" <email@hidden>
- Date: Thu, 17 Oct 2002 15:50:14 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, Oct 17, 2002, at 15:18 US/Eastern, Donald Brown wrote:
on 10/17/02 2:08 PM, Ondra Cada at email@hidden wrote:
On Thursday, October 17, 2002, at 08:53 , Donald Brown wrote:
...are
neither Unicode Text files (no markers at start giving byte order)
nor
plain
text. Instead, they alternate with a null, real character, null,
real
character, etc.
Looks like UTF16 without the leader, what about that?
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];
- --
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEUEARECAAYFAj2vFHwACgkQd6STocYT1xWtbgCVFnAGdN/Jb/nZXduIwuyaW8vL
EwCePWiitpBQUMNcc8hiJYlVyeqRCkQ=
=P9wb
-----END PGP SIGNATURE-----
_______________________________________________
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.