Re: stringWithContentsOfURL: usedEncoding: error:
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