• 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: "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.

  • Follow-Ups:
    • Re: Parsing .vcf files SOLVED
      • From: Donald Brown <email@hidden>
References: 
 >Re: Parsing .vcf files SOLVED (From: Donald Brown <email@hidden>)

  • Prev by Date: Re: Creating an NSDictionary out of NSData?
  • 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