• 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: stringWithContentsOfURL: usedEncoding: error:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stringWithContentsOfURL: usedEncoding: error:


  • Subject: Re: stringWithContentsOfURL: usedEncoding: error:
  • From: "Michael Ash" <email@hidden>
  • Date: Tue, 6 Jun 2006 11:44:21 -0400

On 6/6/06, Greg Stark <email@hidden> wrote:
Thanks, Adam.  It sounds like I may have to rethink this.  I can't
afford to be guessing encodings because of the data corruption
issues.  Unfortunately, I don't the the encodings ahead of time.

There is no third choice. Either you know the encoding (or a very limited set of encodings that can be distinguished with certainty, such as UTF-8/UTF-16) or you must guess the encoding, those are your two choices. The NSString method you were trying would just guess the encoding, so the only benefit to using it is the hope that Apple did a better job with it than you would, and it seems that is not the case.

Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >stringWithContentsOfURL: usedEncoding: error: (From: Greg Stark <email@hidden>)
 >Re: stringWithContentsOfURL: usedEncoding: error: (From: Andy Lee <email@hidden>)
 >Re: stringWithContentsOfURL: usedEncoding: error: (From: Greg Stark <email@hidden>)
 >Re: stringWithContentsOfURL: usedEncoding: error: (From: Adam Leonard <email@hidden>)
 >Re: stringWithContentsOfURL: usedEncoding: error: (From: Greg Stark <email@hidden>)
 >Re: stringWithContentsOfURL: usedEncoding: error: (From: "Adam R. Maxwell" <email@hidden>)
 >Re: stringWithContentsOfURL: usedEncoding: error: (From: Greg Stark <email@hidden>)

  • Prev by Date: Re: NSMovieView & Apple's Protected Video
  • Next by Date: Re: crash when using notification center and self
  • Previous by thread: Re: stringWithContentsOfURL: usedEncoding: error:
  • Next by thread: is [[NSObject alloc] release] correct?
  • Index(es):
    • Date
    • Thread