Re: stringWithContentsOfURL: usedEncoding: error:
Re: stringWithContentsOfURL: usedEncoding: error:
- Subject: Re: stringWithContentsOfURL: usedEncoding: error:
- From: Greg Stark <email@hidden>
- Date: Mon, 5 Jun 2006 21:15:28 -0600
I caught the error after I posted to the list (I copied the example
from an outdated version of my source and have corrected it below).
With the correction, I get the same error: The file could not be
opened using the specified text encoding.
-Greg
On Jun 5, 2006, at 8:30 PM, Andy Lee wrote:
On Jun 5, 2006, at 10:11 PM, Greg Stark wrote:
NSStringEncoding enc;
NSError *error;
NSString *test = [NSString stringWithContentsOfURL:[URLsToOpen
objectAtIndex:0]
usedEncoding:&enc
error:&error];
NSStringEncoding isn't an object, it's just a typedef for
unsigned. Change
NSStringEncoding *enc;
to
NSStringEncoding enc;
--Andy
_______________________________________________
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
_______________________________________________
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